Article View: comp.os.msdos.programmer
Article #3745Re: How can I determine the clock frequency on an 80xxx machine??
From: Robert A. Pease
Date: Mon, 12 Oct 1992 22:24
Date: Mon, 12 Oct 1992 22:24
39 lines
2140 bytes
2140 bytes
In article <4422@cruzio.santa-cruz.ca.us> aki@cruzio.santa-cruz.ca.us writes: > >I beg to differ from you on this point. I have designed a MHz >counting function that (so far) has returned correct or close-to >correct results on all PC's it has been run on. The largest error >margin was on a 4.77 MHz XT that clocked as 3.5 MHz. Usually the >function is right on the money. > >What _IS_ impossible is to take into account and adjust for all the >billions of possible combinations of cache/chipset/CPU to arrive >at the exact correct number all the time. This is just my point. If your code has such a variance on a 4.77 MHz PC for example, how would you know if a value returned should indicate a 25 MHz CPU verses a 33 MHz CPU. With the appropriate cache, the 25 MHz machine may perform closely to an uncached 33 MHz machine. If the 33 MHz machine has very slow memory it may only perform a little better than most 25 MHz machines. There are just too many variables to claim that a piece of code can figure out the clock frequency of a CPU chip by a timming loop. If you add the fact that some machines use the wrong frequency of crystal on the timer chip, then you don't even have a standard to compare against. -- rap. ----------------------------------------------------------------------- Robert A. Pease, Novell Inc. Internet: rap@novell.COM -- rap. ----------------------------------------------------------------------- Robert A. Pease, Novell Inc. Internet: rap@novell.COM
Technical Details
Message-ID:
<1992Oct12.222408.5128@novell.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!sgiblab!newsun!rapReferences:
<menglund.1.717860568@unpcs1.cs.unp.ac.za> <1992Oct8.210438.19205@novell.com> <4422@cruzio.santa-cruz.ca.us>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!sgiblab!newsun!rap From: rap@novell.com (Robert A. Pease) Subject: Re: How can I determine the clock frequency on an 80xxx machine?? Message-ID: <1992Oct12.222408.5128@novell.com> Sender: news@novell.com (The Netnews Manager) Nntp-Posting-Host: la.sjf.novell.com Organization: Novell -- San Jose, Ca. References: <menglund.1.717860568@unpcs1.cs.unp.ac.za> <1992Oct8.210438.19205@novell.com> <4422@cruzio.santa-cruz.ca.us> Date: Mon, 12 Oct 1992 22:24:08 GMT Lines: 39