- fixed bug in Hal_getMonotonicTimeInMs

- declare GetTickCount64 for mingw
v1.6
Michael Zillgith 4 weeks ago
parent e17b280351
commit bd150595b7

@ -11,6 +11,12 @@
#include <time.h> #include <time.h>
#include <windows.h> #include <windows.h>
#ifdef __GNUC__
#ifdef __MINGW32__
ULONGLONG GetTickCount64();
#endif
#endif
uint64_t uint64_t
Hal_getTimeInMs() Hal_getTimeInMs()
{ {
@ -62,7 +68,7 @@ Hal_setTimeInNs(nsSinceEpoch nsTime)
msSinceEpoch msSinceEpoch
Hal_getMonotonicTimeInMs() Hal_getMonotonicTimeInMs()
{ {
return (msSinceEpoch)GetTickCount64; return (msSinceEpoch)GetTickCount64();
} }
nsSinceEpoch nsSinceEpoch

Loading…
Cancel
Save