From bd150595b7c0d0bde228ea981fc92ec98793fca6 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 31 Jul 2025 22:30:11 +0100 Subject: [PATCH] - fixed bug in Hal_getMonotonicTimeInMs - declare GetTickCount64 for mingw --- hal/time/win32/time.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hal/time/win32/time.c b/hal/time/win32/time.c index 3a194e51..2e3eb052 100644 --- a/hal/time/win32/time.c +++ b/hal/time/win32/time.c @@ -11,6 +11,12 @@ #include #include +#ifdef __GNUC__ +#ifdef __MINGW32__ +ULONGLONG GetTickCount64(); +#endif +#endif + uint64_t Hal_getTimeInMs() { @@ -62,7 +68,7 @@ Hal_setTimeInNs(nsSinceEpoch nsTime) msSinceEpoch Hal_getMonotonicTimeInMs() { - return (msSinceEpoch)GetTickCount64; + return (msSinceEpoch)GetTickCount64(); } nsSinceEpoch