From: "Manfred Bartz" <md-linux-kernel@logi.cc>
To: linux-kernel@vger.kernel.org
Subject: Re: Anyone else interested in a high-precision monotonic counter?
Date: 12 Jan 2001 15:16:30 +1100 [thread overview]
Message-ID: <20010112041630.32368.qmail@logi.cc> (raw)
In-Reply-To: <Pine.BSF.4.21.0012180711330.89819-100000@beppo.feral.com> <3A3E336C.B29BBA89@nortelnetworks.com> <14912.11470.540247.408234@diego.linuxcare.com.au> <3A550AC8.D22D0CE4@nortelnetworks.com> <20010105032900.22980.qmail@logi.cc> <3A55DC2E.9C342224@nortelnetworks.com>
In-Reply-To: "Christopher Friesen"'s message of "Fri, 05 Jan 2001 09:37:34 -0500"
"Christopher Friesen" <cfriesen@nortelnetworks.com> wrote:
> Manfred Bartz wrote:
>
> > Why a new system call?
> Well, you'd be accessing a different kernel variable--"ytime" instead of
> "xtime". This new variable wouldn't be adjusted when the system
> time/date was, it would start at zero and always increase.
> > have you looked at the return-value of times(2)
> > Or roll your own using setitimer(2)
>
> Both of these are precise only to jiffies, which defaults at 10
> milliseconds on x86 and PPC. If you want microsecond timing, the only
> current standard way to do it is to use gettimeofday(), which is
> sensitive to changes in system date and time.
Ok. A monotonic, high resolution timer would be useful.
Maybe one should then push for a full implementation of xtime
including TIME_MONOTONIC and TIME_TAI?
<http://www.cl.cam.ac.uk/~mgk25/c-time/>
<http://cr.yp.to/time.html>
--
Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-12 4:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-16 19:07 ServerWorks docs? Rico Tudor
2000-12-16 20:00 ` davej
2000-12-17 2:29 ` Jeff Nguyen
2000-12-18 10:04 ` Rico Tudor
2000-12-18 15:15 ` Matthew Jacob
2000-12-18 15:55 ` gettimeofday() non-monotonic on uniprocessor system with ntp turned off? Christopher Friesen
2000-12-20 3:51 ` Paul Mackerras
2001-01-04 23:44 ` Anyone else interested in a high-precision monotonic counter? Christopher Friesen
2001-01-05 3:29 ` Manfred Bartz
2001-01-05 14:37 ` Christopher Friesen
2001-01-12 4:16 ` Manfred Bartz [this message]
2000-12-19 7:10 ` ServerWorks docs? Jeff Nguyen
2000-12-17 3:54 ` Dan Hollis
2000-12-17 0:25 ` J . A . Magallon
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=20010112041630.32368.qmail@logi.cc \
--to=md-linux-kernel@logi.cc \
--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