diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-10-26 17:28:00 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-10-26 17:28:00 -0700 |
commit | 248377a1db9f2761fd984528cde11ab66555ebfb (patch) | |
tree | 1c638c0affb9b3154d288b74428cd5a912edd24a /host/lib/experts/expert_nodes.hpp | |
parent | f386a2805b1cda04eef8c2ba1a3c680edf28c2a6 (diff) | |
parent | 9517de45709adaea8b574011573a565007149d5d (diff) | |
download | uhd-248377a1db9f2761fd984528cde11ab66555ebfb.tar.gz uhd-248377a1db9f2761fd984528cde11ab66555ebfb.tar.bz2 uhd-248377a1db9f2761fd984528cde11ab66555ebfb.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/experts/expert_nodes.hpp')
-rw-r--r-- | host/lib/experts/expert_nodes.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/host/lib/experts/expert_nodes.hpp b/host/lib/experts/expert_nodes.hpp index dc5cc934b..a704023a3 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(); + } }; /*!--------------------------------------------------------- @@ -387,7 +394,7 @@ namespace uhd { namespace experts { * class worker_node_t * * A node class to implement a function that consumes - * zero or more input data nodes and emits zeroor more output + * zero or more input data nodes and emits zero or more output * data nodes. The worker can also operate on other non-expert * interfaces because worker_node_t is abstract and the client * is required to implement the "resolve" method in a subclass. |