]> git.lizzy.rs Git - minetest.git/blobdiff - src/gettime.h
Translated using Weblate (German)
[minetest.git] / src / gettime.h
index b5cb830cc241ebe247d7e0ca827d046f0e5c898f..cde1471e508541a2016b38284801ba3867826fe8 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 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