pub struct StdClock(/* private fields */);
Expand description
A Standard clock based on std
.
It takes the Instant::elapsed()
time and uses nanoseconds converted to u64
.
This still leaves us with ~594 years of representable time
Implementations§
Trait Implementations§
Source§impl Clock for StdClock
impl Clock for StdClock
Source§const SCALING_FACTOR: Fraction
const SCALING_FACTOR: Fraction
The duration of one clock tick in seconds, AKA the clock precision.
impl Copy for StdClock
Auto Trait Implementations§
impl Freeze for StdClock
impl RefUnwindSafe for StdClock
impl Send for StdClock
impl Sync for StdClock
impl Unpin for StdClock
impl UnwindSafe for StdClock
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