summaryrefslogtreecommitdiffstats
path: root/lib/edi/common.hpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-24 10:23:39 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-24 10:23:39 +0100
commitd0b77935d6aabf5d50e366ae2cec577b56163a3e (patch)
tree3cb6c7ddb677dbcb93bdb96c7ca22a24538fd6ee /lib/edi/common.hpp
parent32dab81b201b54bee4d58bfbab4d2884de245193 (diff)
downloaddabmod-d0b77935d6aabf5d50e366ae2cec577b56163a3e.tar.gz
dabmod-d0b77935d6aabf5d50e366ae2cec577b56163a3e.tar.bz2
dabmod-d0b77935d6aabf5d50e366ae2cec577b56163a3e.zip
Pull common code efe0a08
Diffstat (limited to 'lib/edi/common.hpp')
-rw-r--r--lib/edi/common.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/edi/common.hpp b/lib/edi/common.hpp
index 8252a7a..2a9c683 100644
--- a/lib/edi/common.hpp
+++ b/lib/edi/common.hpp
@@ -43,6 +43,8 @@ struct frame_timestamp_t {
double diff_ms(const frame_timestamp_t& other) const;
+ frame_timestamp_t& operator+=(const std::chrono::milliseconds& ms);
+
static frame_timestamp_t from_unix_epoch(std::time_t time, uint32_t tai_utc_offset, uint32_t tsta);
};