Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sleep || delay || pause.....

0 views
Skip to first unread message

John E. Davis

unread,
Feb 18, 1992, 1:13:18 AM2/18/92
to
Hi,

What is the best way to get a program to sleep for an x amount of
milliseconds in a machine (pc clone but clockspeed) independent way? C has
`sleep' but this will not do since the argument is in seconds. I am looking
for something in fractions of a second--- a C version of the turbo pascal
`delay' would be ideal. Currently, I use a while loop but this is machine as
well as compiler dependent (a smart optimizing compiler might ignore it). Any
suggestions would be greatly appreciated.

Thanks,

0 new messages