aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/experts
diff options
context:
space:
mode:
authorDerek Kozel <derek.kozel@ettus.com>2016-10-24 15:48:42 -0700
committerDerek Kozel <derek.kozel@ettus.com>2016-10-25 15:49:57 -0700
commit129fb9d1995ed556ff7353dc9ecf2be821495108 (patch)
treeb8dca8ac1677b20e92a813c3836f440841b52907 /host/lib/experts
parent2a0e0612dcc9a477e690addae3fd8b42ed301f26 (diff)
downloaduhd-129fb9d1995ed556ff7353dc9ecf2be821495108.tar.gz
uhd-129fb9d1995ed556ff7353dc9ecf2be821495108.tar.bz2
uhd-129fb9d1995ed556ff7353dc9ecf2be821495108.zip
Experts: Add a printer for time_spec_t
Diffstat (limited to 'host/lib/experts')
-rw-r--r--host/lib/experts/expert_nodes.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/experts/expert_nodes.hpp b/host/lib/experts/expert_nodes.hpp
index dc5cc934b..56afd0f10 100644
--- a/host/lib/experts/expert_nodes.hpp
+++ b/host/lib/experts/expert_nodes.hpp
@@ -21,6 +21,7 @@
#include <uhd/config.hpp>
#include <uhd/exception.hpp>
#include <uhd/utils/dirty_tracked.hpp>
+#include <uhd/types/time_spec.hpp>
#include <boost/function.hpp>
#include <boost/foreach.hpp>
#include <boost/thread/recursive_mutex.hpp>
@@ -98,6 +99,12 @@ namespace uhd { namespace experts {
os << int(val);
return os.str();
}
+
+ static std::string print(const time_spec_t time) {
+ std::ostringstream os;
+ os << time.get_real_secs();
+ return os.str();
+ }
};
/*!---------------------------------------------------------