pub fn refresh_interval_from_hz(hertz: f64) -> Option<Duration>
Converts a refresh rate in hertz to the time between refreshes, rejecting the zero, negative, and non-finite rates platforms use to mean “unknown”.