aboutsummaryrefslogtreecommitdiffstats
path: root/src/Outputs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-12-04 14:53:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-12-04 14:53:54 +0100
commitc89b5e3c0d9515f07892af464bd6c60fb3427c36 (patch)
tree18c7573859606dada82e56d5115cd5d1e71129db /src/Outputs.h
parent814ec3abaede73ea38c7130333c7bc0a18e05d91 (diff)
downloadODR-SourceCompanion-c89b5e3c0d9515f07892af464bd6c60fb3427c36.tar.gz
ODR-SourceCompanion-c89b5e3c0d9515f07892af464bd6c60fb3427c36.tar.bz2
ODR-SourceCompanion-c89b5e3c0d9515f07892af464bd6c60fb3427c36.zip
Timestamp arrival of UDP packets
Diffstat (limited to 'src/Outputs.h')
-rw-r--r--src/Outputs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Outputs.h b/src/Outputs.h
index 0f1f34f..1f17491 100644
--- a/src/Outputs.h
+++ b/src/Outputs.h
@@ -136,7 +136,7 @@ class EDI: public Base {
void add_udp_destination(const std::string& host, unsigned int port);
void add_tcp_destination(const std::string& host, unsigned int port);
- void set_tist(bool enable, uint32_t delay_ms);
+ void set_tist(bool enable, uint32_t delay_ms, const std::chrono::system_clock::time_point& ts);
bool enabled() const;
@@ -147,9 +147,9 @@ class EDI: public Base {
std::shared_ptr<edi::Sender> m_edi_sender;
uint32_t m_timestamp = 0;
- uint32_t m_num_seconds_sent = 0;
+ uint32_t m_num_frames_sent = 0;
std::time_t m_edi_time = 0;
- std::time_t m_send_version_at_time = 0;
+ std::chrono::steady_clock::time_point m_time_last_version_sent;
edi::TagDSTI m_edi_tagDSTI;