Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to sleep for a millisecond?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Is there a way to sleep for a millisecond?
 
azizc, Jeff

Be advised that in some versions of Windows, the minimum timer delay you can specify is 17 milliseconds, and even then if you catch it just after the start of a loop, your sleep() could end up taking 33 milliseconds.

Chip H.
 
Thanks Chip! I did not know that. It would be nice if my API book would've mentioned that. - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top