]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/util/timetaker.h
Mapgen V6: Respect water_level setting
[dragonfireclient.git] / src / util / timetaker.h
index 0b9d9ca04d2347d33bd4772147b93ad8a7e56821..5512c205fe611ab72263966bc1e3f5efb2c52fcf 100644 (file)
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define UTIL_TIMETAKER_HEADER
 
 #include "../irrlichttypes.h"
+#include "../gettime.h"
 
 /*
        TimeTaker
@@ -29,7 +30,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 class TimeTaker
 {
 public:
-       TimeTaker(const char *name, u32 *result=NULL);
+       TimeTaker(const char *name, u32 *result=NULL,
+               TimePrecision=PRECISION_MILLI);
 
        ~TimeTaker()
        {
@@ -38,12 +40,13 @@ class TimeTaker
 
        u32 stop(bool quiet=false);
 
-       u32 getTime();
+       u32 getTimerTime();
 
 private:
        const char *m_name;
        u32 m_time1;
        bool m_running;
+       TimePrecision m_precision;
        u32 *m_result;
 };