Article View: comp.os.msdos.programmer
Article #2165Re: How can I get a timed delay of 1 millisecond ?
From: Edward John Kalenda
Date: Wed, 12 Sep 1990 06:17
Date: Wed, 12 Sep 1990 06:17
13 lines
913 bytes
913 bytes
> 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
Technical Details
Message-ID:
<33814@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!portal!cup.portal.com!ekalendaReferences:
<6250@castle.ed.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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