davem@hpmwtd.HP.COM (Dave McQuate) (07/18/90)
I'm quite happy with tctimer, posted 31 Oct 89 by cahalan@iris613.gsfc.nasa.gov, (Goddard Space Flight Center Climate and Radiation Branch)--it allows sub- microsecond timing (something like 890nS resolution); one function returns a long integer--timer ticks, another converts to seconds or microseconds and returns a double. The writes only to the timer chip--to change the resolution. I'll email a copy to anyone who needs it. davem%hpwmtd@hplabs.hp.com ...hpbals!hpmwtd!davem
rob@conexch.UUCP (Robert Collins) (07/18/90)
In article <3308@astroatc.UUCP> feuling@astroatc.UUCP (Lindsay Feuling) writes:
+
+I'm trying to find out, if it's possible, to get a higher resolution
+clock out of DOS than the measley 18.2 ticks per second. I really want
+
+P.S. Doesn't anyone document code?
I have a routine that I have written in assembler that has 838nS resolution.
The routine uses the 8254 timer chip in the PC. The routine was originally
published in 02/87 Byte magazine (I think 02/87). If you can't find the
article in the library, or are still frustrated, I will send you a copy of my
code. I have adapted it for various uses, including calculating CPU speed.
--
"Worship the Lord your God, and serve him only." Mat. 4:10
Robert Collins UUCP: ucbvax!ucivax!icnvax!conexch!rob
HOMENET: (408) 225-8002 UUCP: uunet!ccicpg!conexch!rob
WORKNET: (408) 432-6200 x4356