09.02.2017, 16:37
Quote:
Sure it works, but why "GetTickCount() - GetTickCount() < interval" instead "0 < interval"?
|
His code isn't an infinite loop. After executing the loop millions of times, GetTickCount will return a new value whereas TickCount will remain the same. It works like the sleep() function.
EDIT: Oops. I bumped. Sorry.