[coyotos-dev] coyotos.sleep, sleepTill, the epoch

Valerio Bellizzomi devbox at selnet.org
Thu Feb 8 12:58:53 CST 2007


On 07/02/2007, at 21.53, Jonathan S. Shapiro wrote:

>On Thu, 2007-02-08 at 00:06 +0100, Valerio Bellizzomi wrote:
>> On 07/02/2007, at 17.37, Jonathan S. Shapiro wrote:
>
>> >Since we don't report uptime, we don't track it anywhere. There is no
>> >notion of counting uptime at all. I'm confused by the question.
>> 
>> Why are you confused?  is there any means to know how long the machine
>has
>> been up ?
>
>Nothing in the kernel or the boot mechanism provides any support for
>this. There will probably be some mechanism to be notified of restarts,
>and this can be used to implement uptime at user level.

This is no problem. All that is needed to implement uptime is a record of
startup time+date, the counting can be implemented at user level, it as
simple as subtracting startup time from current time.

>
>> It is non confirming if you want to strictly conform to POSIX. But for
>> what concerns hard real-time and some scientific applications, the
>> critical words are "Time values from these systems do not suffer the
>> ambiguity that strictly conforming POSIX systems or NTP-driven systems
>> have."
>> 
>> If I want to conform to another time scale, where in the code I need to
>> make changes ?
>
>When we write the time handling code we'll figure it out. You're about a
>year ahead of us.

It's not bad. I have much time to think :-)

val




More information about the coyotos-dev mailing list