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§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
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