Trait SystemTimer

Source
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§

Source

fn current_time_millis(&self) -> i64

Returns the time duration since UNIX_EPOCH in milliseconds.

Source

fn current_time_rfc3339(&self) -> String

Returns the current time in rfc3339 format.

Implementors§