linux-mips
[Top] [All Lists]

Getting Time Difference

To: <linux-mips@linux-mips.org>
Subject: Getting Time Difference
From: "Gilad Benjamini" <yaelgilad@myrealbox.com>
Date: Thu, 16 Jan 2003 18:48:09 +0200
Importance: Normal
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,
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 ?


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