Skip to main content

Module time

Module time 

Source
Expand description

Virtual time.

Time in the virtual world is a first-class Engine mechanism. The default VirtualClock is frozen until explicitly advanced: an idle virtual world does not age. This makes scenarios, tests, and replays deterministic.

HostClock is provided for the rare case where timestamps must correspond to the host wall clock. It is non-deterministic and should not be used by scenarios or tests.

Re-exports§

pub use super::timestamp::Timestamp;

Structs§

HostClock
A clock backed by the host wall clock.
VirtualClock
A deterministic clock that is frozen until explicitly advanced.

Traits§

Clock
A source of virtual time.