[Top] [All Lists]

Re: Getting Time Difference

To: Gilad Benjamini <>
Subject: Re: Getting Time Difference
From: Ralf Baechle <>
Date: Fri, 17 Jan 2003 13:56:19 +0100
In-reply-to: <>; from on Thu, Jan 16, 2003 at 06:48:09PM +0200
Original-recipient: rfc822;
References: <>
User-agent: Mutt/
On Thu, Jan 16, 2003 at 06:48:09PM +0200, Gilad Benjamini wrote:

> I am porting code from a x86 platform.
> That code uses rdtsc and cpu_khz to compute
> the time difference between two events. Jiffies aren't good enough in this 
> case.
> Looking through header files I can find a few MIPS replacements.
> What is the "right" one to use ?
> What is the best way to change the code so it can compile
> and run on both platforms ?

Try do_gettimeofday().


<Prev in Thread] Current Thread [Next in Thread>