bluegaspode;646671 Wrote: > > --------- > The timer is based on a monotonic clock, that is, if somebody is > sitting in front of the machine while the timer is running and changes > the system clock, the timer will nevertheless run (roughly) the same > time. > -------- > I interpret this that the seconds are just counted down - if the server > hibernates or sleeps for 5mins the timer would trigger 5mins later. > Also when there are daylight saving changes in the night, the server > would not respect them, which is a but strange for an alarm clock. > > Another interesting comment there: > ----- > The timer does his best not to drift, but it will not invoke the timer > more often then once per event loop iteration, and might drift in other > cases. If that isn't acceptable, look at EV::periodic, which can provide > long-term stable timers. > -----
That sounds like a very good approach to the problem. From looking at my ntpd log I can tell that my server's clock is off by many seconds (and would be totally useless without ntpd): Aug 4 00:36:55 regis ntpd[990]: time reset +2.649129 s Aug 4 00:52:21 regis ntpd[990]: time reset +2.666362 s Aug 4 01:08:29 regis ntpd[990]: time reset +2.784663 s Aug 4 01:24:17 regis ntpd[990]: time reset +2.726872 s Aug 4 01:40:05 regis ntpd[990]: time reset +2.728198 s Aug 4 01:55:20 regis ntpd[990]: time reset +2.634140 s Aug 4 02:10:28 regis ntpd[990]: time reset +2.611686 s Aug 4 02:26:14 regis ntpd[990]: time reset +2.720763 s Aug 4 02:41:18 regis ntpd[990]: time reset +2.603887 s Aug 4 02:57:04 regis ntpd[990]: time reset +2.719497 s Aug 4 03:12:51 regis ntpd[990]: time reset +2.725046 s Aug 4 03:27:59 regis ntpd[990]: time reset +2.613932 s Aug 4 03:43:05 regis ntpd[990]: time reset +2.605977 s Aug 4 03:58:12 regis ntpd[990]: time reset +2.611431 s Aug 4 04:13:37 regis ntpd[990]: time reset +2.660828 s Aug 4 04:29:35 regis ntpd[990]: time reset +2.755782 s Aug 4 04:44:48 regis ntpd[990]: time reset +2.629014 s Aug 4 05:00:31 regis ntpd[990]: time reset +2.712094 s Aug 4 05:16:05 regis ntpd[990]: time reset +2.686916 s Aug 4 05:31:09 regis ntpd[990]: time reset +2.602980 s Aug 4 05:46:50 regis ntpd[990]: time reset +2.707192 s Aug 4 06:02:14 regis ntpd[990]: time reset +2.657796 s Aug 4 06:17:44 regis ntpd[990]: time reset +2.676087 s Aug 4 06:33:20 regis ntpd[990]: time reset +2.694464 s Aug 4 06:49:15 regis ntpd[990]: time reset +2.748388 s Aug 4 07:04:32 regis ntpd[990]: time reset +2.637098 s Aug 4 07:23:00 regis ntpd[990]: time reset +3.189679 s Please let me know what I can do to help testing or debugging. -- cran ------------------------------------------------------------------------ cran's Profile: http://forums.slimdevices.com/member.php?userid=10961 View this thread: http://forums.slimdevices.com/showthread.php?t=89292 _______________________________________________ Radio mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/radio
