From e228165ff9d44af5d9a3971f17c288d629fdb6db Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 17 Jul 2021 14:31:31 +1000 Subject: [PATCH] [host] windows: fix system timer resolution message units ZwSetTimerResolution works in units of 100ns --- host/platform/Windows/src/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/src/platform.c b/host/platform/Windows/src/platform.c index 9b291f32..ef791009 100644 --- a/host/platform/Windows/src/platform.c +++ b/host/platform/Windows/src/platform.c @@ -519,7 +519,7 @@ bool app_init(void) { ULONG actualResolution; ZwSetTimerResolution(1, true, &actualResolution); - DEBUG_INFO("System timer resolution: %.2f ns", (float)actualResolution / 100.0f); + DEBUG_INFO("System timer resolution: %lu ns", actualResolution * 100); } // get the performance frequency for spinlocks