Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!uoft02.utoledo.edu!desire.wright.edu!wright!news From: sdawalt@valhalla.wright.edu (Shane Dawalt) Newsgroups: comp.os.msdos.programmer Subject: Re: Generating delays Message-ID: <1991Mar5.000824.20638@cs.wright.edu> Date: 5 Mar 91 00:08:24 GMT References: <1010@caslon.cs.arizona.edu> Sender: news@cs.wright.edu (USENET News System) Reply-To: sdawalt@valhalla.wright.edu Distribution: comp Organization: Wright State University Lines: 15 From article <1010@caslon.cs.arizona.edu>, by tlglenn@cs.arizona.edu (Ted L. Glenn): > > One quick fix for generating delays is to fool around with loops. Doesn't > look good, but works. I can't remember, is there a sleep command in C? > The sleep command in Turbo C (C++) has 1 second resolution. Loop are not portable between machines due to different CPU speeds. About the only real fix is to take control of the timer tick interrupt. Shane(); -------------------------------------------------------------------------- From the keyboard of: email: sdawalt@cs.wright.edu Shane A. Dawalt --------------------------------------------------------------------------