pub trait Clock: Send + Sync {
// Required method
fn now(&self) -> SystemTime;
}Expand description
Where the runner reads the time (event and record timestamps).
Required Methods§
Sourcefn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Now.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".