From: Chris Friesen <cfriesen@nortel.com>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Jesper Juhl <juhl-lkml@dif.dk>, linux-kernel@vger.kernel.org
Subject: Re: Short sleep precision
Date: Mon, 21 Mar 2005 10:35:01 -0600 [thread overview]
Message-ID: <423EF7B5.2030507@nortel.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0503201427010.31416@yvahk01.tjqt.qr>
Jan Engelhardt wrote:
>>You can spin on the gettimeofday() result in userspace.
>
>
> How can I use it?
Something like:
gettimeofday(&curtime,0);
add_usecs(&curtime, time_to_sleep);
do {
gettimeofday(&curtime,0);
} while (time_before(&curtime, &expiry);
Of course, if someone changes the system time on you you're screwed....
Chris
next prev parent reply other threads:[~2005-03-21 16:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-20 12:25 Short sleep precision Jan Engelhardt
2005-03-20 12:44 ` Jesper Juhl
2005-03-20 13:34 ` Jan Engelhardt
2005-03-21 16:35 ` Chris Friesen [this message]
2005-03-22 2:46 ` Robert White
2005-03-22 7:46 ` Jan Engelhardt
[not found] ` <424036AE.1040404@nortel.com>
2005-03-22 15:19 ` Jan Engelhardt
2005-03-20 13:04 ` Andrew Morton
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=423EF7B5.2030507@nortel.com \
--to=cfriesen@nortel.com \
--cc=jengelh@linux01.gwdg.de \
--cc=juhl-lkml@dif.dk \
--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