[coyotos-dev] coyotos.sleep, sleepTill, the epoch
Jonathan S. Shapiro
shap at eros-os.com
Mon Feb 12 08:40:44 CST 2007
On Mon, 2007-02-12 at 00:15 +0100, Valerio Bellizzomi wrote:
> On 11/02/2007, at 18.30, Sam Mason wrote:
>
> >On Fri, Feb 09, 2007 at 03:40:49PM -0500, Jonathan S. Shapiro wrote:
> >> Something you definitely do NOT want is a 1ms granularity interrupt to
> >> maintain a tick counter. On current hardware this will account for a
> >> measurable fraction of the machine.
> >
> >Yes, I was very surprised when Linux got this!
>
>
> The hardware clock on a PC uses a low cost time base oscillator. It is
> imprecise in any case.
> So why don't just grab the BIOS time-of-day when we need it?
The BIOS time of day is driven by the imprecise hardware clock. It
drifts by **several seconds** per day. This is why NTP is so important.
In any case, none of this belongs in the kernel.
--
Jonathan S. Shapiro, Ph.D.
Managing Director
The EROS Group, LLC
+1 443 927 1719 x5100
More information about the coyotos-dev
mailing list