osal icon indicating copy to clipboard operation
osal copied to clipboard

Switch to waitable timers for sleep

Open elupus opened this issue 2 years ago • 1 comments

This improves accuracy compared to sleep.

This make use of high resolution timers on modern windows machines to ensure timers as well as sleeps are close to 1 ms accurate, without raising the global tick interval.

In theory it should allow more than 1ms accuracy however, it seem to generally be limited to around 0.6 ms in testing.

Note. Requires windows 10.

elupus avatar Feb 27 '23 17:02 elupus

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 23 '25 11:09 CLAassistant