summaryrefslogtreecommitdiff
path: root/src/gettime.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-03-29 16:51:57 -0400
committerkwolekr <kwolekr@minetest.net>2013-03-29 16:53:15 -0400
commitdf49b93877b40551111be6ef5ecfe4629787ab75 (patch)
tree003b704c971cdbb36b9bc24f87a1ecf637a5dad8 /src/gettime.h
parent5e7e0347cdae0cab3b7d003fbd3b22c7f820e703 (diff)
downloadminetest-df49b93877b40551111be6ef5ecfe4629787ab75.tar.gz
minetest-df49b93877b40551111be6ef5ecfe4629787ab75.tar.bz2
minetest-df49b93877b40551111be6ef5ecfe4629787ab75.zip
Add varying levels of precision to TimeTaker
Diffstat (limited to 'src/gettime.h')
-rw-r--r--src/gettime.h8
1 files changed, 8 insertions, 0 deletions
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