pub struct MonotonicRawClock;
Expand description
Interface to the CLOCK_MONOTONIC_RAW Linux clock
This clock is monotonic (does not jump back in time) and will never be
recalibrated, so its durations will be more reliable than those of
BootTimeClock on short time scales. The resolution is hardware-dependent,
but can be queried using the underlying PosixClock
trait. Suspend is NOT
correctly handled, it’s as if no time was spent.
Trait Implementations§
Source§impl Default for MonotonicRawClock
impl Default for MonotonicRawClock
Source§fn default() -> MonotonicRawClock
fn default() -> MonotonicRawClock
Returns the “default value” for a type. Read more
Source§impl PosixClock for MonotonicRawClock
impl PosixClock for MonotonicRawClock
Source§fn resolution_raw() -> timespec
fn resolution_raw() -> timespec
Check the resolution (precision) of this clock, in POSIX format
Source§fn resolution() -> Duration
fn resolution() -> Duration
Check the resolution (precision) of this clock, in this crate’s format
Auto Trait Implementations§
impl Freeze for MonotonicRawClock
impl RefUnwindSafe for MonotonicRawClock
impl Send for MonotonicRawClock
impl Sync for MonotonicRawClock
impl Unpin for MonotonicRawClock
impl UnwindSafe for MonotonicRawClock
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