[erlang-questions] Newbie question: wait until an absolute time
Fri Feb 1 15:40:30 CET 2008
Christian S wrote:
> If I knew that I would have to do something, such as turning on the
> VCR at 2009-12-24 19:00 for Karl Bertil Jonsons julafton on TV, I
> doubt I would just want to do "Timeout = VCRMillis - NowMillis,
> sleep(Timeout)" anyway. Instead I would limit my sleep to perhaps
> day-intervals, and close down to smaller intervals when I get closer
> to the absolute time. Such code would perhaps warrant a special
> function that does all that for me.
the reason behind your decision is to limit loss of precision,
i.e. take potential time drifting into account?
More information about the erlang-questions