From: george anzinger <george@mvista.com>
To: Chris Friesen <cfriesen@nortelnetworks.com>
Cc: Joel Becker <Joel.Becker@oracle.com>,
john stultz <johnstul@us.ibm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Clock monotonic a suggestion
Date: Fri, 21 Mar 2003 00:10:46 -0800 [thread overview]
Message-ID: <3E7AC906.2020303@mvista.com> (raw)
In-Reply-To: <3E7AA8CD.8070708@nortelnetworks.com>
Chris Friesen wrote:
> Joel Becker wrote:
>
>> The issue for CLOCK_MONOTONIC isn't one of resolution. The
>> issue is one of accuracy. If the monotonic clock is ever allowed to
>> have an offset or a fudge factor, it is broken. Asking the monotonic
>> clock for time must always, without fail, return the exact, accurate
>> time since boot (or whatever sentinal time) in the the units monotonic
>> clock is using.
>
>
> I thought that strictly speaking monotonic just meant that it never went
> backwards.
That is implied by the name. What the standard says is that it is a
clock that is not settable and that its units are seconds and
nanoseconds. The standard does not say anything about returning the
same time (which, of course is legal and possible given that the
standard allows the resolution to be as large as 20 ms).
What I am trying to call attention to is that, if we don't base the
clock on the NTP corrected time, the notion of a second used by
CLOCK_MONOTONIC will not be the same as that used by CLOCK_REALTIME.
I think this is a bad thing...
--
George Anzinger george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml
next prev parent reply other threads:[~2003-03-21 8:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-21 0:16 Clock monotonic a suggestion george anzinger
2003-03-21 2:50 ` Joel Becker
2003-03-21 5:53 ` Chris Friesen
2003-03-21 8:10 ` george anzinger [this message]
2003-03-21 8:01 ` george anzinger
2003-03-21 19:43 ` Joel Becker
2003-03-21 20:53 ` john stultz
2003-03-21 13:17 ` Martin Waitz
2003-03-21 19:18 ` george anzinger
2003-03-21 19:46 ` Joel Becker
2003-03-21 19:44 ` Joel Becker
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=3E7AC906.2020303@mvista.com \
--to=george@mvista.com \
--cc=Joel.Becker@oracle.com \
--cc=cfriesen@nortelnetworks.com \
--cc=johnstul@us.ibm.com \
--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