Skip to main content

refresh_interval_from_hz

Function refresh_interval_from_hz 

Source
pub fn refresh_interval_from_hz(hertz: f64) -> Option<Duration>
Expand description

Converts a refresh rate in hertz to the time between refreshes, rejecting the zero, negative, and non-finite rates platforms use to mean “unknown”.