X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgettime.h;h=cde1471e508541a2016b38284801ba3867826fe8;hb=fa427d641b687dd8585adced708510b94588cf51;hp=23376be3f5d41e1bc1fc3453f153a6578adab790;hpb=037b2591971d752e67fa7d47095b996b3f56da5a;p=oweals%2Fminetest.git diff --git a/src/gettime.h b/src/gettime.h index 23376be3f..cde1471e5 100644 --- a/src/gettime.h +++ b/src/gettime.h @@ -1,6 +1,6 @@ /* -Minetest-c55 -Copyright (C) 2010 celeron55, Perttu Ahola +Minetest +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 @@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef GETTIME_HEADER #define GETTIME_HEADER -#include "common_irrlicht.h" +#include "irrlichttypes.h" /* Get a millisecond counter value. @@ -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