Quote Originally Posted by Fran
There is however one major downside to using it. It's very inacurate. Sleep(1) will return 1-15ms later, rarely 1. With nothing else happening on the system, the average on my fast computer is 2-3ms, but as soon as something else is going on, it's 10-15ms.
As it's already been said: call timeBeginPeriod(1); and measure your accuracy again. You should be surprized!