Skip to main content

Clock

Trait Clock 

Source
pub trait Clock: Send {
    // Required method
    fn now(&self) -> Instant;
}
Available on crate feature std only.
Expand description

Source of wall-clock time used by crate::PipelineBuilder::window.

The default impl is SystemClock, which wraps std::time::Instant::now. Custom impls let tests advance time deterministically.

Required Methods§

Source

fn now(&self) -> Instant

Return the current instant.

Implementors§