Skip to main content

parse_duration

Function parse_duration 

Source
pub fn parse_duration(text: &str) -> Result<u64, String>
Expand description

500ms, 2s, 10s, 1m, or a bare number of seconds.