lkml.org 
[lkml]   [1997]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCPU Speed

Greetings,

I am trying to get a value for the CPU speed (Hz) that is accurate to
less than 0.1%. I need this value for perfmon- my profiling tool that
uses two special profiling registers in the Pentium and PPro. You can
time a loop, or sleep for a while and count CPU clicks- but the time
taken in a task switch does not guarantee a highly accurate (and
reproducible) CPU speed. I need to determine this speed at run time
(it is used to compute OPS/second). I hope this is the right venue in
which to ask this question.

Suggestions?

Patrick

--
---------------------------------------------------------------------
M. Patrick Goda W: (505)667-5386
Los Alamos National Laboratory H: (505)989-4506
Theoretical Astrophysics, T-6 MS B288 mpg@nea.lanl.gov
Los Alamos, NM 87545 http://qso.lanl.gov/~mpg
---------------------------------------------------------------------
Snappy Quote: "abcdefghijklmnopqrstuvwxyz"*
*some assembly required
---------------------------------------------------------------------

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.018 / U:5.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site