View Single Post
  #9  
Old 09-05-2010, 06:42
dila dila is offline
Friend
 
Join Date: Jan 2010
Posts: 60
Rept. Given: 12
Rept. Rcvd 32 Times in 14 Posts
Thanks Given: 35
Thanks Rcvd at 74 Times in 20 Posts
dila Reputation: 32
MSDN says: "The resolution of the GetTickCount function is limited to the resolution of the system timer, which is typically in the range of 10 milliseconds to 16 milliseconds.".

For Sleep(1000) that would give a min time of 984 and a max of 1016.

That does not include the call/ret overhead for the Sleep/GetTickCount functions.

Last edited by dila; 09-05-2010 at 06:44. Reason: Math error
Reply With Quote