Mail Archives: djgpp/1998/01/11/19:25:24
On Tue, 6 Jan 1998, John Patton wrote:
> Hi,
>
> (sorry if it shows up twice... I'm not sure if I like
> hotmail anymore...)
>
> I am in need of a method that gives me the cpu clock
> speed, i.e. I have a Pentium 233Mhz, I want to be able
> to display "Pentium 233Mhz" I can get the Pentium
> part through the methods found in Allegro 3.0, but I
> need the 233 part.
There's a program called "mhz.c" from LMBENCH (Larry McVoy's kernel
microbenchmarks for UNIX). I don't know how it works, but it can determine
the clock speed (in MHz) of almost any CPU I've thrown at it -- from a 486
to a Pentium to a 6x86 to a SuperSPARC to an UltraSPARC to a MIPS R5000.
----------------------------------------------------------------------
L L Orlando Andico orly AT mozcom DOT com
L L L L Mosaic Communications, Inc. http://www2.mozcom.com/~orly/
L L L L L +63 2 848-2893 (office)
L L L L L +63 2 932-2385 (home)
MosCom
----------------------------------------------------------------------
- Raw text -