Hi guys!
Have faced some very interesting problem with GetTheTickCount.
Imagine I placed to the task, in some endless loop, such code:
Code: x = GetTheTickCount{}; Sleep(1000); x = GetTheTickCount{} - x;
What do you think the "x" contains? Usually this is value >= 1000, but sometimes it is 999, and more curious, sometimes it is 998. Tested with 997 and looks like this never happens.
Do you know why after 1000 milliseconds sleep GetTickCount shows 998 milliseconds difference?