pub trait SystemTimer {
// Required methods
fn current_time_millis(&self) -> i64;
fn current_time_rfc3339(&self) -> String;
}
Expand description
A trait for types that provide the current system time.
Required Methods§
Sourcefn current_time_millis(&self) -> i64
fn current_time_millis(&self) -> i64
Returns the time duration since UNIX_EPOCH in milliseconds.
Sourcefn current_time_rfc3339(&self) -> String
fn current_time_rfc3339(&self) -> String
Returns the current time in rfc3339 format.