ark::pipeline::SimTimeProvider

Defined in header “ark/pipeline/sim_time_provider.hh”.


A custom time-provider for the sim-clock executor, which allows us to timestamp messages with our simulated clock.

Methods

  • ~SimTimeProvider()
    Virtual destructor, for cleanup.

  • void add(std::chrono::nanoseconds duration)
    Adds the given time to the elapsed time.

  • void set(const std::chrono::steady_clock::time_point & new_time)
    Sets the clock to the given time. Refuses to set the time backwards.

  • std::chrono::steady_clock::time_point now()
    Returns a timestamp appropriate for stamping envelope messages.

  • std::chrono::steady_clock::time_point from_monotonic_time()
    Translates the given steady_clock time (in system monotonic time frame) to the pipeline time.