pub fn parse_duration(s: &str) -> Result<u64, String>
Parse a duration string like “5m”, “30s”, “100ms”, “1h”, “1d” into milliseconds.