pub(crate) fn parse_duration(s: &str) -> Result<Duration, String>
Parses 200ms, 10s, 1m, or a number of seconds (integer or float).
200ms
10s
1m