aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-25 17:33:51 -0700
committerGitHub <noreply@github.com>2016-10-25 17:33:51 -0700
commitfb5c365396d608dd0f4703a203343300ac1efb51 (patch)
tree451d8566b078917e23cd105f027b839bf702a5aa /host/lib
parentabee6b1929390e4824964f9fc2b3ed538dc3c679 (diff)
parentd97e3abb53b4bf67b8a78bb3a151898ef8158811 (diff)
downloaduhd-fb5c365396d608dd0f4703a203343300ac1efb51.tar.gz
uhd-fb5c365396d608dd0f4703a203343300ac1efb51.tar.bz2
uhd-fb5c365396d608dd0f4703a203343300ac1efb51.zip
Merge pull request #1335 from EttusResearch/expert_tweaks
Expert tweaks
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/experts/expert_nodes.hpp9
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.