diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-08-24 16:14:15 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-08-24 16:14:15 +0200 |
commit | 7441d427947aaa79b88e1eae157981c95d7ca5fa (patch) | |
tree | a45e955da7a7946264d215a30758e531b92322b4 /src/TimestampDecoder.h | |
parent | 1383ded72f3796a00eeb25551160f66eb89f378e (diff) | |
download | dabmod-7441d427947aaa79b88e1eae157981c95d7ca5fa.tar.gz dabmod-7441d427947aaa79b88e1eae157981c95d7ca5fa.tar.bz2 dabmod-7441d427947aaa79b88e1eae157981c95d7ca5fa.zip |
Add TS debugging output
Diffstat (limited to 'src/TimestampDecoder.h')
-rw-r--r-- | src/TimestampDecoder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h index 3616bab..4e94d4c 100644 --- a/src/TimestampDecoder.h +++ b/src/TimestampDecoder.h @@ -39,7 +39,7 @@ struct frame_timestamp int32_t fct; uint8_t fp; // Frame Phase - uint32_t timestamp_sec; + uint32_t timestamp_sec; // seconds in unix epoch uint32_t timestamp_pps; // In units of 1/16384000 s bool timestamp_valid = false; bool timestamp_refresh; @@ -76,6 +76,8 @@ struct frame_timestamp timestamp_pps = lrint(subsecond * 16384000.0); } + std::string to_string() const; + void print(const char* t) const { etiLog.log(debug, "%s <frame_timestamp(%s, %d, %.9f, %d)>\n", |