Trait nannou::time::DurationF64
source · pub trait DurationF64 {
// Required method
fn secs(&self) -> f64;
// Provided methods
fn ms(&self) -> f64 { ... }
fn mins(&self) -> f64 { ... }
fn hrs(&self) -> f64 { ... }
fn days(&self) -> f64 { ... }
fn weeks(&self) -> f64 { ... }
}
Expand description
An extension for the std::time::Duration
type providing some simple methods for easy access
to an f64
representation of seconds, ms, mins, hrs, and other units of time.
While these measurements make it easier to work with sketches and artworks, it’s worth noting that resolution may be lost, especially at high values.