Skip to main content

clock_from_millis

Function clock_from_millis 

Source
pub fn clock_from_millis(
    source: impl Fn() -> u64 + Send + Sync + 'static,
) -> ClockRef
Expand description

A ClockRef reading epoch milliseconds from a test-supplied source, for the hybrid-logical-clock tests that think in milliseconds rather than DateTimes.