Skip to main content

format_seconds

Function format_seconds 

Source
pub fn format_seconds(secs: u64) -> String
Expand description

A duration in seconds, at the precision a person would actually say it in.

Deliberately coarse above a minute: an estimate printed as ā€œ14m 37sā€ claims a second of accuracy that a throughput average over a handful of restores does not have, and reads as a measurement rather than as the guess it is.