pub trait Clock: Send + 'static {
// Required method
fn now(&self) -> SystemTime;
}Expand description
Abstraction over time for testing.
Required Methods§
Sourcefn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Return the current wall-clock time.