pub trait Clock {
// Required method
fn monotonic_ns(&self) -> MonoNs;
}Expand description
The host’s monotonic clock: the core’s only time source.
Required Methods§
Sourcefn monotonic_ns(&self) -> MonoNs
fn monotonic_ns(&self) -> MonoNs
Monotonic nanoseconds from the host’s origin.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".