Struct coarsetime::Clock[][src]

pub struct Clock;

System time

Implementations

impl Clock[src]

pub fn now_since_epoch() -> UnixTimeStamp[src]

Returns the elapsed time since the UNIX epoch

pub fn recent_since_epoch() -> UnixTimeStamp[src]

Returns the elapsed time since the UNIX epoch, based on the latest explicit time update

pub fn update()[src]

Updates the system time - This is completely equivalent to calling Instant::update()

Trait Implementations

impl Debug for Clock[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.