aboutsummaryrefslogtreecommitdiff
path: root/assets/oldmodels/trackvertical1.b3d
diff options
context:
space:
mode:
Diffstat (limited to 'assets/oldmodels/trackvertical1.b3d')
0 files changed, 0 insertions, 0 deletions
*/ #ifndef GETTIME_HEADER #define GETTIME_HEADER #include "common_irrlicht.h" /* 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 */ extern u32 getTimeMs(); /* Timestamp stuff */ #include <time.h> #include <string> inline std::string getTimestamp() { time_t t = time(NULL); // This is not really thread-safe but it won't break anything // except its own output, so just go with it. struct tm *tm = localtime(&t); char cs[20]; strftime(cs, 20, "%H:%M:%S", tm); return cs; } #endif