pub trait RustTimeRuntime {
    // Required methods
    fn get_monotonic(&self) -> Duration;
    fn get_system_time(&self) -> Duration;
    fn actual_monotonicity(&self) -> Monotonicity;
}
Expand description

Runtime trait for libstd’s time support

Required Methods§

source

fn get_monotonic(&self) -> Duration

Get a monotonic timestamp.

source

fn get_system_time(&self) -> Duration

Get a system time timestamp.

source

fn actual_monotonicity(&self) -> Monotonicity

Is the monotonic timestamp monotonic or not?

Implementors§