Crate sim_time
Source - SimulationConfig
- Configuration of how the simulation should behave.
- TimeConfig
- Top level configuration
- init
- Pass the
TimeConfig to configure sim-time globally.
Must be called before any other fns otherwise sim-time will initialize with defaults. - now
- Returns the current time in the simulation
- sleep
- Will sleep for the simulated duration.
- timeout
- Will timeout for the simulated duration.
- wait_until_realtime
- Returns a future that will return when the simulation has caught up to the current time.