Path: utzoo!attcan!uunet!umich!iuvax!maytag!watstat.waterloo.edu!dmurdoch From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Newsgroups: comp.lang.pascal Subject: Re: Timing in Turbo Pascal Message-ID: <1990Oct28.142118.6756@maytag.waterloo.edu> Date: 28 Oct 90 14:21:18 GMT References: <2280@oucsace.cs.OHIOU.EDU> <5307@crash.cts.com> Sender: daemon@maytag.waterloo.edu (Admin) Distribution: na Organization: University of Waterloo Lines: 17 In article <5307@crash.cts.com> nkraft@crash.cts.com (Norman Kraft) writes: >In article <2280@oucsace.cs.OHIOU.EDU> tswingle@oucsace.cs.ohiou.edu (Tom Swingle) writes: >>Does anybody know of a way to *accurately* time an event down to at least 1/100 >>of a second in Turbo Pascal? I have tried using the GetTime procedure, but it >>relies on DOS, which is only accurate to about 5/100 of a second. Turbo Pascal >>has the Delay procedure which can accurately time to 1/1000 of a second. Does >>anybody know how they do this? > >Well, what they do, on an AT machine at least, is call a BIOS function which >waits for a millisecond. Which version are you using? On mine (5.5), all delay() does is run a do-nothing loop. The loop gets calibrated during the startup. Maybe that's where you saw the BIOS call? Duncan Murdoch dmurdoch@watstat.waterloo.edu