Skip to main content

nros_warn_throttle

Macro nros_warn_throttle 

Source
macro_rules! nros_warn_throttle {
    ($logger:expr, $interval_ms:expr, $($arg:tt)+) => { ... };
}
Expand description

Emit at crate::Severity::Warn, at most once per interval_ms at this call site.

Reads the platform clock; needs cfg(nros_log_clock) (see nros_warn_throttle_at! for the form that takes the time).