Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo Pascal Delay Procedure Message-ID: <261f38a9@ralf> Date: 8 Apr 90 13:12:09 GMT Sender: ralf@b.gp.cs.cmu.edu Organization: Carnegie Mellon University School of Computer Science Lines: 17 In-Reply-To: <261CDED5.17827@maccs.dcss.mcmaster.ca> In article <261CDED5.17827@maccs.dcss.mcmaster.ca>, cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) wrote: } The delay functions in Turbo C and Turbo Pascal use the DOS call to get }DOs's time. This is updated at about 18.2 Hz, so the clock is only accurate }to about 0.05 second resolution. The TC and TP delay functions use a delay loop which is calibrated on the first call (TC) or at program startup (TP). It allows delays to millisecond precision with a fair amount of accuracy, provided you don't have some other code stealing time (particularly during the one clock-tick calibration period). -- UUCP: {ucbvax,harvard}!cs.cmu.edu!ralf -=- 412-268-3053 (school) -=- FAX: ask ARPA: ralf@cs.cmu.edu BIT: ralf%cs.cmu.edu@CMUCCVMA FIDO: Ralf Brown 1:129/46 "How to Prove It" by Dana Angluin Disclaimer? I claimed something? 21. proof by ghost reference: Nothing even remotely resembling the cited theorem appears in the reference given.