macro_rules! periodic_job {
($timer:expr => $what:expr, $interval_secs:path $(,)?) => { ... };
($timer:expr => $what:expr, $interval_secs:path,no_log $(,)?) => { ... };
}Expand description
If $interval_secs has passed since $timer, run $what and reset $timer.