Re: a faster way to gettimeofday? rdtsc strangeness

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Mar 07 2002 - 11:17:59 EST


> > They normally adjust the STPCLK which is just fine. I've only seen a few
> > laptops that do it other ways. More fun are people running mixed 300/450
> > BP6 boards where the tsc varies by cpu
>
> Can /proc/cpuinfo really be trusted in figuring out how long a cycle is?

The bogomip counter is a pretty good bet for any other system, and
gettimeofday() for the general case.
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:01:04 EST