pub fn get_timer(name: &str) -> Timer
Expand description
Creates a new timer or returns an existing one.
Timers are identified by their name and their lifetime is bound by the lifetime of the configuration. Reloading the configuration destroys all existing timers.
Within the same configuration, calling this function multiple times with the same name will return the same timer.
Timers can be deleted by calling remove
. At that point all existing references to
the timer become invalid and get_timer
will return a new timer.