pub trait ClockSource: Default {
// Required method
fn current_timestamp(&self) -> i64;
}Expand description
Provides current time.
Required Methods§
Sourcefn current_timestamp(&self) -> i64
fn current_timestamp(&self) -> i64
The current timestamp in milliseconds since the Unix epoch.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.