pub trait Clock: Send + Sync {
// Required method
fn now_unix_ms(&self) -> i64;
}Expand description
The current time as UTC milliseconds since the Unix epoch, the unit every stored timestamp uses.
Required Methods§
fn now_unix_ms(&self) -> i64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".