]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/gettime.h
Fix codestyle since CSM Camera API
[dragonfireclient.git] / src / gettime.h
index b2f09a7bb9ee7882aa35b3eee969a9b21a670c6a..4d5a02e1e253cfff34e0e7f5726f7959b6553055 100644 (file)
@@ -21,34 +21,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define GETTIME_HEADER
 
 #include "irrlichttypes.h"
+#include <time.h>
+#include <string>
 
-/*
-       Get a millisecond counter value.
-       Precision depends on implementation.
-       Overflows at any value above 10000000.
-
-       Implementation of this is done in:
-               Normal build: main.cpp
-               Server build: servermain.cpp
-*/
 enum TimePrecision
 {
-       PRECISION_SECONDS = 0,
+       PRECISION_SECONDS,
        PRECISION_MILLI,
        PRECISION_MICRO,
        PRECISION_NANO
 };
 
-extern u32 getTimeMs();
-extern u32 getTime(TimePrecision prec);
-
-/*
-       Timestamp stuff
-*/
-
-#include <string>
-#include <time.h>
-
 inline std::string getTimestamp()
 {
        time_t t = time(NULL);