[erlang-questions] Best way to do wall time alarms?

Bengt Kleberg bengt.kleberg@REDACTED
Wed Jan 24 08:44:52 CET 2007


On 2007-01-24 07:30, jm wrote:
> Haven't had a change to investigate this and thought someone may have a 
> good idea as to the best approach. I'm after a way for a process to be 
> notified on the hour and then every quarter hour there after, eg, 00:00, 
> 00:15, 00:30, 00:45, etc. The use of a quarter hour is just an example 
> and in the real application it will be configurable. The use of notify 
> hints at the use of gen_event as the receive or as an intermediary. The 
> question really then is what is the best way to generate these events? 
> Is there a standard approach, etc?

perhaps the module
timer
and one of the functions:
apply_interval
or
send_interval

could help you to do what you want?


bengt
-- 
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list