[host] windows: fix system timer resolution message units

ZwSetTimerResolution works in units of 100ns
This commit is contained in:
Geoffrey McRae 2021-07-17 14:31:31 +10:00
parent d615514799
commit e228165ff9

View File

@ -519,7 +519,7 @@ bool app_init(void)
{ {
ULONG actualResolution; ULONG actualResolution;
ZwSetTimerResolution(1, true, &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 // get the performance frequency for spinlocks