Struct f3::time::Instant
[−]
[src]
pub struct Instant { /* fields omitted */ }
A measurement of a monotonically increasing clock
Methods
impl Instant
[src]
fn now() -> Self
Returns the instant corresponding to "now".
fn elapsed(&self) -> u32
Returns the number of "ticks" that have passed since this instant was created.
Caveats
This function doesn't handle overflows. There's no way to know if more
than 1 << 32
ticks have passed; the number of ticks will just wrap
around.
Trait Implementations
impl Clone for Instant
[src]
fn clone(&self) -> Instant
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more