delays in lightspeed C

SEIP bcs87559 at zach.fit.edu
Mon May 14 04:31:26 AEST 1990


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 at zach.fit.edu before May 30; this is
only a temporary account.

 



More information about the Comp.lang.c mailing list