pub trait SystemClock {
// Required method
fn elapsed(&self) -> Duration;
}
Expand description
Something which records the elapsed real time.
This uses shared references because it may be shared between multiple components at any one time.
pub trait SystemClock {
// Required method
fn elapsed(&self) -> Duration;
}
Something which records the elapsed real time.
This uses shared references because it may be shared between multiple components at any one time.