argv0 was on the right track about the API. Event driven multi-tasking environments give processes priorities. Addressing an API timer event as high priority will yield more expected results with the cost of processing speed.

On a side note Thrull, on my machine with Win 7, your code without the -h worked fine every time. All numbers in order.