pub fn parse_duration(text: &str) -> Result<Duration, String>
A duration from 250ms, 1.5s, 2m or 0.
250ms
1.5s
2m
0