Re: About the timer in linux-kernel

Ingo Molnar (mingo@pc7537.hil.siemens.at)
Fri, 8 Aug 1997 12:39:30 +0200 (MET DST)


On Fri, 8 Aug 1997, David S. Miller wrote:

> Date: Fri, 08 Aug 1997 10:30:27 +0100
> From: Benoit ROBINET <benrob@hplb.hpl.hp.com>
>
> I am highly frustrated because I have a Pentium Pro 200, and I
> don't really see how to be more accurate than hundredth of
> seconds... Could anyone help me ?
>
> Read the pentium cycle counter...

maybe 'get_fast_time()' [in 2.1] is a better choice, it's platform
independent and reasonably fast (~90 cycles on a pentium, less on a PPro),
and gives standard resolution (1 usec) time.

-- mingo