X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgettime.h;h=cde1471e508541a2016b38284801ba3867826fe8;hb=fa427d641b687dd8585adced708510b94588cf51;hp=611906559b5059caf127553cd0f2954d8ea28fe0;hpb=6d0ea26c2d62c3774ff384cf1bfc2a3372b49a3b;p=oweals%2Fminetest.git diff --git a/src/gettime.h b/src/gettime.h index 611906559..cde1471e5 100644 --- a/src/gettime.h +++ b/src/gettime.h @@ -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