A settable, advanceable clock for deterministic tests.
Summary
Functions
Advance the simulated clock by a number of seconds.
Set the simulated clock to an exact value.
Start a simulated clock at start.
Functions
@spec advance(Agent.agent(), number()) :: :ok
Advance the simulated clock by a number of seconds.
@spec set(Agent.agent(), DateTime.t()) :: :ok
Set the simulated clock to an exact value.
@spec start_link(DateTime.t()) :: Agent.on_start()
Start a simulated clock at start.