aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-26 18:45:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-26 18:45:58 +0200
commit6babef7df913dc91066bf1ac8c7a1ad6b43acb3d (patch)
tree8cbc610f6cbcc7e17138a179ea792a7bf401261d /src/OutputUHD.h
parent607a1c0af18e047f51e6f8f888449a9f2cecd167 (diff)
downloaddabmod-6babef7df913dc91066bf1ac8c7a1ad6b43acb3d.tar.gz
dabmod-6babef7df913dc91066bf1ac8c7a1ad6b43acb3d.tar.bz2
dabmod-6babef7df913dc91066bf1ac8c7a1ad6b43acb3d.zip
Use system time instead of usrp time to print
Diffstat (limited to 'src/OutputUHD.h')
-rw-r--r--src/OutputUHD.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/OutputUHD.h b/src/OutputUHD.h
index 6ebacef..6de945e 100644
--- a/src/OutputUHD.h
+++ b/src/OutputUHD.h
@@ -49,6 +49,7 @@ DESCRIPTION:
#include <uhd/usrp/multi_usrp.hpp>
#include <boost/thread.hpp>
#include <deque>
+#include <chrono>
#include <memory>
#include <string>
@@ -151,7 +152,7 @@ class UHDWorker {
uint32_t last_tx_pps;
// Used to print statistics once a second
- double last_usrp_time;
+ std::chrono::steady_clock::time_point last_print_time;
void print_async_metadata(const struct UHDWorkerFrameData *frame);