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,