pub trait Clock:
Debug
+ Send
+ Sync {
// Required method
fn current_timestamp_millis(&self) -> i64;
}
Expand description
A source of time
Required Methods§
Sourcefn current_timestamp_millis(&self) -> i64
fn current_timestamp_millis(&self) -> i64
get the current time in milliseconds since epoch