[comp.lang.c] delays in lightspeed C

bcs87559@zach.fit.edu ( SEIP) (05/14/90)

I am working on a project (in lightspeed C on a MAC II), and I require
a statement similar to the turbo-pascal DELAY(X); procedure call,
where X is the number of milliseconds that the program waits. So far
I have not been able to find such a function. I have been implementing
millisecond-delays with for structures, which compute some dummy
result over and over; the problem with this is that I can not control
the amount of time that the computer spneds on this function exactly.
The function sleep would be fine; however, I need milliseconds and not
seconds. Any suggestions? By the way, the program interfaces with a
synchro-to digital converter interface, which computes an angle value and
is very slow (at 16bits resolution...).

Please send replys to bcs87559@zach.fit.edu before May 30; this is
only a temporary account.