Skip to main content

format_gap

Function format_gap 

Source
pub fn format_gap(elapsed: Duration) -> String
Expand description

Formats an elapsed cache gap for the advisory message. Sub-minute gaps are shown in seconds (e.g. “45s”) rather than rounding down to “0 min”, which would otherwise happen for any threshold under 60 seconds.