pub fn parse_duration(text: &str) -> Result<u64, String>
500ms, 2s, 10s, 1m, or a bare number of seconds.
500ms
2s
10s
1m