pub trait Clock: Send + Sync {
// Required method
fn now_ms(&self) -> i64;
}Expand description
The time source of the shell. Only the shell reads it: a macrostep sees the time stamped on its input when the input was dequeued, which is journaled.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".