You might want to look into using the real time clock (/dev/rtc) make
sure you have support compiled into your kernel.

(search google for how to use it)


On Fri, Aug 30, 2002 at 07:49:41PM -0500, Mike Bresnahan wrote:
> Thanks, Chris.  My concern with using gettimeofday() is that I don't want to
> pay the performance cost of doing a timezone calculation.  In fact I don't
> require the real time.  I simply want to measure the elapsed time of an
> operation.  A simple counter running at the clock frequency of the processor
> would suffice; as long as I can also determine the clock frequency.  I
> understand that the pentium processor has such a function and it requires
> only a small amount of assembly code to access it, however I'd prefer to not
> write the assembly code if I don't have to.
> 
> Mike

-- 
Matthew S. Hallacy                            FUBAR, LART, BOFH Certified
http://www.poptix.net                           GPG public key 0x01938203