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§
sourcefn get_monotonic(&self) -> Duration
fn get_monotonic(&self) -> Duration
Get a monotonic timestamp.
sourcefn get_system_time(&self) -> Duration
fn get_system_time(&self) -> Duration
Get a system time timestamp.
sourcefn actual_monotonicity(&self) -> Monotonicity
fn actual_monotonicity(&self) -> Monotonicity
Is the monotonic timestamp monotonic or not?