diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-04 08:36:03 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-04 08:36:03 +0100 |
commit | 4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8 (patch) | |
tree | eb6a7ad2b63b2887725159f53904c7a471429269 /src/TimestampDecoder.h | |
parent | 34afa3a0632817c30e4e5427ee67138d59c4ede3 (diff) | |
download | dabmod-4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8.tar.gz dabmod-4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8.tar.bz2 dabmod-4d8310ae0ffe1f78a2b8623d55f63ae504ff1aa8.zip |
Make DPD Feedback server SDRDevice-agnostic
Diffstat (limited to 'src/TimestampDecoder.h')
-rw-r--r-- | src/TimestampDecoder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h index 34d862f..1ef493e 100644 --- a/src/TimestampDecoder.h +++ b/src/TimestampDecoder.h @@ -94,6 +94,12 @@ struct frame_timestamp return t; } + long long int get_ns() const { + long long int ns = timestamp_sec * 1000000000ull; + ns += llrint((double)timestamp_pps / 0.016384); + return ns; + } + void print(const char* t) { fprintf(stderr, |