News for hackers. Stuff that matters.
Re:Windows Timer Resolution: The Great Rule Change by beagle3 on Monday October 05, 2020 @05:43PM (#24692373)
Somewhere around 2003 I discovered that the best way to do a short sleep, regardless of timeBeginPeriod() and friends, is to use select() with a short (1ms or 0.5ms) timeout. It worked on Win2K and WinXP, even when Sleep() didn't go below 1ms and wasn't dependable for less than 1ms even with timeBeginPeriod

There are no comments on this comment yet.