pub fn duration_from_millis(ms: f64) -> Result<Duration, ZxError>
Convert milliseconds into a Duration, rejecting negative and NaN values.
Duration