Skip to content

Raise the clock interrupt frequency in Windows

Notifications You must be signed in to change notification settings

Aetopia/TimerResolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TimerResolution

Raise the clock interrupt frequency in Windows

See Fixing timing precision in Windows after the "The Great Rule Change" for a detailed explanation regarding restoring the old timer resolution implementation otherwise nothing below will make sense.

MeasureSleep is used to measure the precision of Sleep(1). The closer it sleeps to 1ms in reality, the better.

SetTimerResolution queries and sets the maximum timer resolution applicable to the system (usually 0.5ms). To start it automatically on boot, you can place the binary in shell:startup.

On Windows Server 21H2+ and Windows 11+, the registry key below should also be used so that requesting a higher resolution is effective on a system-wide level rather than only the calling process.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel]
"GlobalTimerResolutionRequests"=dword:00000001

About

Raise the clock interrupt frequency in Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages