pub fn parse_duration(input: &str) -> Result<Duration, String>
Parse 30s, 500ms, 2m, 1h, or a bare number of seconds.
30s
500ms
2m
1h