From 129fb9d1995ed556ff7353dc9ecf2be821495108 Mon Sep 17 00:00:00 2001 From: Derek Kozel Date: Mon, 24 Oct 2016 15:48:42 -0700 Subject: Experts: Add a printer for time_spec_t --- host/lib/experts/expert_nodes.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib/experts') 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 #include #include +#include #include #include #include @@ -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(); + } }; /*!--------------------------------------------------------- -- cgit v1.2.3