[comp.lang.pascal] Accurate delays in Turbo

johnm@sim.berkeley.edu (John D. Mitchell) (07/11/90)

murphy@newton.physics.purdue.edu (William J. Murphy) asks:

[Stuff about timer in posted unit.]
[Basically,  how do I get very accurate delays?]

Well to get an accurate delay you need an accurate timer.  In Michael Abrash's
book __Zen of Assembler__ (published by Scott Foresman and Co.) a super
accurate timer is presented (actually a short- and a long-term timer) along
with an explanation of their operation.  If you're just planning to do
nothing during the delay period then you could just loop around calls to
his timer.

Good luck,
	John Mitchell
	johnm@sim.Berkeley.EDU

#include <disclaimer.std>