2 ms·
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
by beagle3 6y ago
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