I am replying now because I didn't hava much free time. I didn't tackled the problem. However, I remember, but it doesn't mean that I know much as I am not that expert in programming, that in the old days of dos one could set registers in the cpu and have an interruption; instead of running a continuous ask to a timer if the time has passed, the cpu itself triggered the event you want.
@SilverWarior, thanks for the revert! Also, the method you described, uses sleep; try a simple loop of incrementing an integer, and try to use sleep(1) and no sleep. Also display that integer per 1000 or 10000 or 100000 increments and see both the frequency of the output and the task manager.
Bookmarks