Fix Android build, but there is a remaining linking issue in guiConfirmRegistration
[oweals/minetest.git] / src / gettime.h
index b2f09a7bb9ee7882aa35b3eee969a9b21a670c6a..f20728dfdab6628e46905f8f493dec82e3b7a6de 100644 (file)
@@ -17,38 +17,20 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef GETTIME_HEADER
-#define GETTIME_HEADER
+#pragma once
 
 #include "irrlichttypes.h"
+#include <ctime>
+#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);
@@ -59,5 +41,3 @@ inline std::string getTimestamp()
        strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
        return cs;
 }
-
-#endif