mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] windows: fix system timer resolution message units
ZwSetTimerResolution works in units of 100ns
This commit is contained in:
parent
d615514799
commit
e228165ff9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user