minetest-mapper-cpp/porting_win32.h
Rogier 2f4a917bb1 Add a function to obtain relative millisecond-timestamps
'Relative' in the sense that they can only sensibly compared to
another time value obtained using the same function during the
same program invocation.
2016-08-03 11:31:38 +02:00

11 lines
124 B
C

#include <windows.h>
#define sleepMs(x) Sleep(x)
inline uint64_t getRelativeTimeStampMs()
{
return GetTickCount64();
}