delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/11/19:25:24

Date: Mon, 12 Jan 1998 08:23:28 +0800 (HKT)
From: Orlando Andico <orly AT mozcom DOT com>
To: John Patton <gimli21 AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: CPU Speed
In-Reply-To: <199801062246.OAA18419@f132.hotmail.com>
Message-ID: <Pine.GSO.3.96.980112082221.4802B-100000@mozcom.com>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019