Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!portal!cup.portal.com!ekalenda From: ekalenda@cup.portal.com (Edward John Kalenda) Newsgroups: comp.os.msdos.programmer Subject: Re: How can I get a timed delay of 1 millisecond ? Message-ID: <33814@cup.portal.com> Date: 12 Sep 90 06:17:44 GMT References: <6250@castle.ed.ac.uk> Organization: The Portal System (TM) Lines: 13 > What is the best way to get a program to wait for one milliosecond ? > (I am using Microsoft C V5.1). If you really need that fine a timer, there is an unused timer channel in the timer chip. program it to start counting down at zero, then read the current counter value until it reaches 65535 - ticks where each tick is 1/1193100 seconds. If you need a code fragment, send me e-mail and I'll try to put one together for you. Ed ekalenda@cup.portal.com