WinAPI Sleep() function call sleeps for longer than expected

Is this common behavior

It is.

Window’s thread scheduler works on a time quantum (exact length depends of various factors including Windows version and edition). Effectively any non-zero delay is rounded up to a complete quantum.

Leave a Comment