[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Changing system time confuses timeouts



On Thu, 21 Oct 1999 19:05:29 -0500 (CDT), Bill Wilson wrote:
> I use a gtk_timeout_add() and my callback always returns TRUE so that
> I can periodically update a scrolling set of charts.  When the system time
> is changed back the timeout stops being called until the system time catches
> up to the timeout trigger point.  If system time is set forward, the timeout
> may also stop being called for a while.
> 
> I know why this is happening (expiration time is current time plus an
> interval),
> but is there some way to set up a timeout so my callback will always be called
> on schedule?  This is a problem when ntpdate periodically adjust the time.

Try using xntpd instead of ntpdate: xntpd automatically adjusts for the
drift in the system clock. In that way you won't have big time
adjustments.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]