|
itch-mold-replay 1.0
Time-accurate NASDAQ TotalView-ITCH 5.0 replay over MoldUDP64
|
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. | |
Calculates relative delay for a given message timestamp for downstream (which passes the first message's timestamp from each packet )
|
inline |
|
inline |
True/false if given timestamp is before skip_before_
|
inline |
Returns calculated delay.
The first time this is called this will set replay_origin_ to Clock::now()