lkml.org 
[lkml]   [1997]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: clock speed
Date
--------Geert Uytterhoeven wrote----------
>
> On Wed, 11 Jun 1997 mcculley@iag.net wrote:
> > Is there any way to, from user space, find out the system clock speed?
> > That is, reliably and without having to do a nanosleep and watch the
> > cycle counter.
>
> Parse /proc/cpuinfo. You can derive an estimation for the CPU clock speed
> based on CPU type, stepping and bogomips.
>
> On Linux/m68k, /proc/cpuinfo even gives you that estimation automatically.
>
> Greetings,
>
> Geert
>
with the utime patch you get that information directly from /proc/cpuinfo
utime patch is for the ondemand microsecond resolution timers....
its available at http://hegel.ittc.ukans.edu/projects/utime

Also, The updated utime patch for 2.1.x kernels should be available soon
(in a weeks time) Details about this would be posted later
balaji


-------------------------------------------------------------------------------
Balaji Srinivasan
Voice: (913)-864-4776(W) email: balaji@eecs.ukans.edu
(913)-841-3555(H) WWW : http://www.eecs.ukans.edu/~balaji


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