itch-mold-replay 1.0
Time-accurate NASDAQ TotalView-ITCH 5.0 replay over MoldUDP64
Loading...
Searching...
No Matches
imr::mold::downstream::Pacer< Clock > Class Template Reference

Calculates relative delay for a given message timestamp for downstream (which passes the first message's timestamp from each packet ) More...

#include <pacer.h>

Classes

struct  Config
 

Public Member Functions

 Pacer (const Config &cfg)
 
bool should_skip (std::chrono::nanoseconds packet_timestamp)
 True/false if given timestamp is before skip_before_
 
std::chrono::nanoseconds get_delay (std::chrono::nanoseconds packet_timestamp)
 Returns calculated delay.
 

Detailed Description

template<ClockConcept Clock = std::chrono::steady_clock>
class imr::mold::downstream::Pacer< Clock >

Calculates relative delay for a given message timestamp for downstream (which passes the first message's timestamp from each packet )

Constructor & Destructor Documentation

◆ Pacer()

template<ClockConcept Clock = std::chrono::steady_clock>
imr::mold::downstream::Pacer< Clock >::Pacer ( const Config cfg)
inline

Member Function Documentation

◆ should_skip()

template<ClockConcept Clock = std::chrono::steady_clock>
bool imr::mold::downstream::Pacer< Clock >::should_skip ( std::chrono::nanoseconds  packet_timestamp)
inline

True/false if given timestamp is before skip_before_

◆ get_delay()

template<ClockConcept Clock = std::chrono::steady_clock>
std::chrono::nanoseconds imr::mold::downstream::Pacer< Clock >::get_delay ( std::chrono::nanoseconds  packet_timestamp)
inline

Returns calculated delay.

The first time this is called this will set replay_origin_ to Clock::now()


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