Date: Mon, 12 Jan 1998 08:23:28 +0800 (HKT) From: Orlando Andico To: John Patton cc: djgpp AT delorie DOT com Subject: Re: CPU Speed In-Reply-To: <199801062246.OAA18419@f132.hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 ----------------------------------------------------------------------