Skip to main content

Clock

Type Alias Clock 

Source
pub type Clock = Arc<dyn Fn() -> i64 + Send + Sync>;
Expand description

Milliseconds since the epoch (Date.now()); injected so fixtures can fix it.

Aliased Typeยง

pub struct Clock { /* private fields */ }