Open
Description
What version of Go are you using (go version
)?
go version go1.11.1 windows/amd64
Does this issue reproduce with the latest release?
Try to set a high frequency timer
What operating system and processor architecture are you using (go env
)?
windows amd64
What did you do?
Set the OS to a high frequency tick using NtSetTimerResolution
What did you expect to see?
NtQueryTimerResolution should return 1ms
What did you see instead?
NtQueryTimerResolution returned 15ms
This used to work but was broken by the following commit:
11eaf42
This "reduces the timer resolution when the Go process is entirely idle" however this is a system wide setting so golang cannot just assume another app on the machine doesn't require a high resolution timer to work correctly, hence setting it back to 15ms isn't safe.