Skip to main content

Clock

Trait Clock 

Source
pub trait Clock: Send + Sync {
    // Required method
    fn now_ms(&self) -> i64;
}
Expand description

The time source of the shell. Only the shell reads it: a macrostep sees the time stamped on its input when the input was dequeued, which is journaled.

Required Methods§

Source

fn now_ms(&self) -> i64

Milliseconds since the Unix epoch.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§