| To: | Gilad Benjamini <yaelgilad@myrealbox.com> |
|---|---|
| Subject: | Re: Getting Time Difference |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Fri, 17 Jan 2003 13:56:19 +0100 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <ECEPLLMMNGHMFBLHCLMAGEGDDIAA.yaelgilad@myrealbox.com>; from yaelgilad@myrealbox.com on Thu, Jan 16, 2003 at 06:48:09PM +0200 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <ECEPLLMMNGHMFBLHCLMAGEGDDIAA.yaelgilad@myrealbox.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.2.5.1i |
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(). Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Anyone running crashme?, Kevin D. Kissell |
|---|---|
| Next by Date: | Re: Performance measuring in MIPS R3000, Ralf Baechle |
| Previous by Thread: | Getting Time Difference, Gilad Benjamini |
| Next by Thread: | Re: Getting Time Difference, Jun Sun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |