cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) (04/07/90)
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. -- More half-baked ideas from the oven of: **************************************************************************** Stephen M. Dunn cs4g6ag@maccs.dcss.mcmaster.ca <std_disclaimer.h> = "\nI'm only an undergraduate ... for now!\n";
Ralf.Brown@B.GP.CS.CMU.EDU (04/08/90)
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.