Article View: comp.os.msdos.programmer
Article #180Timing Problem
From: Dick Zeitlin
Date: Fri, 31 Jul 1992 13:27
Date: Fri, 31 Jul 1992 13:27
15 lines
1056 bytes
1056 bytes
JY> . The time should be accurate to at
> .least 10 ms but the clock() function in C and the other time
> .functions I've looked at are only accurate to 55 ms (because
> .it's updated 18.2 ticks/sec).
Read the timer-0 (or maybe it's timer-1) register at Port 0x40, which is
used to generate that 18.2/sec tick. That register is incremented at
approx. 1.2 mHz. It's a 16 bit register, and should provide sufficient
resolution for your needs. <~>
D/
* OLX 2.2 * Dick.Zeitlin%acc1bbs@ssr.com
Technical Details
Message-ID:
<1805.102.uupcb@ssr.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!hotmomma!acc1bbs!dick.zeitlinShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!hotmomma!acc1bbs!dick.zeitlin From: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) Newsgroups: comp.os.msdos.programmer Subject: Timing Problem Message-ID: <1805.102.uupcb@ssr.com> Date: 31 Jul 92 13:27:00 GMT Distribution: world Organization: Advanced Computer Concepts BBS, New Rochelle, NY 914-654-1981 Reply-To: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) Lines: 15