Hello Slyone2,
The Sleep API will suspend the execution of the thread it is in for the number of milliseconds specified. During this time, if there any other threads with the same priority level they will be executed before returning to the Sleep thread You have no control how and what the system decides to execute and when.. This is why you see a timing difference.
Bookmarks