Timer server

Ulf Wiger <>
Mon Jan 20 10:44:35 CET 2003


On Mon, 20 Jan 2003, Kenneth Lundin wrote:

>With 32 bit you can represent 1193 hours and I think that
>is quite a long time for a timeout. To set a timer for
>something to happen a specific time on a specific date I
>think should be handled in a different way than by just
>calculating the difference from now and then set a timer on
>that. This could then go wrong if the time is adjusted for
>some reason (e.g daylight savings ). In those cases I think
>it is necessary to check against local time with a suitable
>periodicity.
>
>The accuracy of a timer on a specific time and date need
>probably not be on the millisecond level either.


I fully agree. One may disagree regarding what would be
"suitable periodicity". I know we once had date-time timers
that would sleep for 24 hours at a time. Personally, I think
15-30 minutes, or even shorter, would be perfectly OK as
well. Compared to the amount of work required to
re-calculate the timer, 15 minutes is an eternity.

/Uffe
-- 
Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson Telecom AB, ATM Multiservice Networks




More information about the erlang-questions mailing list