ravel
Deterministic simulation testing for C++. Seed a bug, replay it exact.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
ravel::VirtualClock Class Reference

Monotonic virtual time. More...

#include <clock.hpp>

Public Types

using Tick = std::uint64_t
 Virtual time, in ticks. A tick has no fixed real-world length.
 

Public Member Functions

Tick now () const noexcept
 The current virtual time.
 

Friends

class Scheduler
 

Detailed Description

Monotonic virtual time.

It never touches the wall clock, so a run is reproducible regardless of host speed or load, and only the Scheduler can move it forward.


The documentation for this class was generated from the following file: