Skip to main content

Module time

Module time 

Source
Expand description

Caller-supplied time for protocol and model drivers.

Drivers take the current Instant on every poll and never read a clock.

Structs§

Instant
A point on the monotonic clock, in nanoseconds from the clock’s origin.

Constants§

EPOCH
MoQ’s epoch, 2020-01-01T00:00:00Z: wall times on the wire count from it.

Traits§

Driver
A state machine polled with caller-supplied time.

Functions§

run
Run a driver to completion on the ambient runtime, sleeping until each deadline.