Struct coarsetime::Clock
source · pub struct Clock;
Expand description
System time
Implementations
sourceimpl Clock
impl Clock
sourcepub fn now_since_epoch() -> Duration
pub fn now_since_epoch() -> Duration
Returns the elapsed time since the UNIX epoch
sourcepub fn recent_since_epoch() -> Duration
pub fn recent_since_epoch() -> Duration
Returns the elapsed time since the UNIX epoch, based on the latest explicit time update
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more