Subject: Re: probing CPU speed?
To: Frank van der Linden <frank@wins.uva.nl>
From: Michael K. Sanders <msanders@confusion.net>
List: port-i386
Date: 11/18/1998 17:12:00
In message <19981119005645.A5720@wins.uva.nl>, Frank van der Linden writes:
>The CPU speed isn't trivially determined. There'd have to be a speed
>determination loop/timing to do that, something like 'mhz' in lmbench,
>but in-kernel.

Okay, I'll buy that.  FreeBSD seems to have a hack for at least 586
and 686 class machines that looks like this:

                printf("%d.%02d-MHz ",
                       (tsc_freq + 4999) / 1000000,
                       ((tsc_freq + 4999) / 10000) % 100);