From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Chuck Lever <cel@citi.umich.edu>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: timer question
Date: Wed, 31 Mar 2004 16:31:29 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.53.0403311628120.12948@chaos> (raw)
In-Reply-To: <Pine.BSO.4.33.0403311609180.17377-100000@citi.umich.edu>
On Wed, 31 Mar 2004, Chuck Lever wrote:
> hi all-
>
> i'm looking for a way to do microsecond resolution timing in the RPC
> client. i need a timer or timestamp function that is fairly cheap, that i
> can call on any hardware platform, and that i can invoke from inside a
> bottom half.
>
> any suggestions?
>
> - Chuck Lever
If you find one, we'd all like to use it! The Intel machines,
after the i486, have the rdtsc instruction which will return
the number of CPU clocks that have occurred since the chip was
turned ON. It can be calibrated upon startup so you know how
many clocks occur in a second.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
next prev parent reply other threads:[~2004-03-31 21:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 21:11 Chuck Lever
2004-03-31 21:31 ` Richard B. Johnson [this message]
2004-04-01 6:10 ` Chris Friesen
-- strict thread matches above, loose matches on Subject: below --
2002-03-05 13:57 Emmanuel Chaput
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.53.0403311628120.12948@chaos \
--to=root@chaos.analogic.com \
--cc=cel@citi.umich.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®