pub struct StdLinuxMonotonicClock { /* private fields */ }Expand description
Monotonic clock backed by std::time::Instant.
Ticks are defined as nanoseconds elapsed since the clock was constructed.
This is strictly monotonic (subject to Instant’s guarantees).
Implementations§
Source§impl StdLinuxMonotonicClock
impl StdLinuxMonotonicClock
Sourcepub fn new() -> StdLinuxMonotonicClock
pub fn new() -> StdLinuxMonotonicClock
Create a new StdLinuxMonotonicClock with the current instant as origin.
Trait Implementations§
Source§impl Clone for StdLinuxMonotonicClock
impl Clone for StdLinuxMonotonicClock
Source§fn clone(&self) -> StdLinuxMonotonicClock
fn clone(&self) -> StdLinuxMonotonicClock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StdLinuxMonotonicClock
impl Debug for StdLinuxMonotonicClock
Source§impl Default for StdLinuxMonotonicClock
Available on crate feature std only.
impl Default for StdLinuxMonotonicClock
Available on crate feature
std only.Source§fn default() -> StdLinuxMonotonicClock
fn default() -> StdLinuxMonotonicClock
Returns the “default value” for a type. Read more
Source§impl PlatformClock for StdLinuxMonotonicClock
Available on crate feature std only.
impl PlatformClock for StdLinuxMonotonicClock
Available on crate feature
std only.Auto Trait Implementations§
impl Freeze for StdLinuxMonotonicClock
impl RefUnwindSafe for StdLinuxMonotonicClock
impl Send for StdLinuxMonotonicClock
impl Sync for StdLinuxMonotonicClock
impl Unpin for StdLinuxMonotonicClock
impl UnsafeUnpin for StdLinuxMonotonicClock
impl UnwindSafe for StdLinuxMonotonicClock
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