Provides periodic events.
Current this module sends tick notifications at periodic intervals. These ticks can be observed to implement periodic tasks.
For periodic tasks the system has various periodic tick events. They are named after their interval s for seconds, m for minutes, and h for hours.
Check something every hour:
-include_lib("kernel/include/logger.hrl"). observe_tick_1h(tick_1h, Context) -> ?LOG_INFO("And another hour has passed..."), do_something(Context).
The return value is ignored.
The tick observers are called one by one in a separate process. So a slow handler can delay the other handlers.