X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgettime.h;h=cde1471e508541a2016b38284801ba3867826fe8;hb=fa427d641b687dd8585adced708510b94588cf51;hp=daeec0e468fef62b150dd9b5b3422e081dd9ce2d;hpb=497ff1ecd64c8908f988e15ca879824f2781e3fd;p=oweals%2Fminetest.git diff --git a/src/gettime.h b/src/gettime.h index daeec0e46..cde1471e5 100644 --- a/src/gettime.h +++ b/src/gettime.h @@ -1,6 +1,6 @@ /* Minetest -Copyright (C) 2010 celeron55, Perttu Ahola +Copyright (C) 2013 celeron55, Perttu Ahola This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -31,7 +31,15 @@ with this program; if not, write to the Free Software Foundation, Inc., Normal build: main.cpp Server build: servermain.cpp */ +enum TimePrecision { + PRECISION_SECONDS, + PRECISION_MILLI, + PRECISION_MICRO, + PRECISION_NANO +}; + extern u32 getTimeMs(); +extern u32 getTime(TimePrecision prec); /* Timestamp stuff