On Mon, Jan 06, 2003 at 12:16:38AM +0100, Rob van der Heij wrote:

> At 23:14 05-01-03, Matt Zimmerman wrote:
>
> >The poll interval has to do with polling network time servers using the
> >NTP protocol.  This is usually on the order of minutes rather than
> >seconds.  The 1-second interval is to wake up and tend to the local
> >system clock.
>
> You lost me. If it probes servers every few minutes, what useful things
> can it do every second?

See ntpd/ntp_timer.c, function timer().

It basically checks for events that have been scheduled to run at a
particular time, and dispatches them.

Could this be done differently?  Yes.  Could the same strategy work with a
longer polling interval?  Usually.  Do I want to try to fix it?  Hell no.
The maintenance of accurate timekeeping over the network is not the kind of
project that I care to trifle with in an evening of hacking. :-)

Especially not when the code contains things like #ifdef SYS_WINNT and
#if defined(VMS).

--
 - mdz

Reply via email to