pub struct Clock { /* private fields */ }Expand description
A monotonic clock that can be anchored to a specific Epoch.
Implementations§
Trait Implementations§
Source§impl MonotonicClock for Clock
impl MonotonicClock for Clock
Source§fn is_ticking(&self) -> bool
fn is_ticking(&self) -> bool
Returns true if the clock is ticking.
Source§fn time_as_float(&self) -> f64
fn time_as_float(&self) -> f64
Get the now time since the epoch as a float.
impl Send for Clock
impl Sync for Clock
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more