Function ggez::timer::duration_to_f64 [−][src]
pub fn duration_to_f64(d: Duration) -> f64
Expand description
A convenience function to convert a Rust Duration
type
to a (less precise but more useful) f64
.
Does not make sure that the Duration
is within the bounds
of the f64
.