Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!winnie!zach!bcs87559 From: bcs87559@zach.fit.edu ( SEIP) Newsgroups: comp.lang.c Subject: delays in lightspeed C Keywords: delay Message-ID: <1135@winnie.fit.edu> Date: 13 May 90 18:31:26 GMT Expires: 30 May 90 04:00:00 GMT Sender: usenet@winnie.fit.edu Reply-To: bcs87559@zach.fit.edu Distribution: usa Organization: Florida Institute of Technology, ACS, Melbourne, FL Lines: 17 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.