Re: clock speed

Geert Uytterhoeven (
Wed, 11 Jun 1997 14:36:33 +0200 (MET DST)

On Wed, 11 Jun 1997 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.



Geert Uytterhoeven           
Wavelets, Linux/m68k on Amiga
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium