diff options
Diffstat (limited to 'host/lib')
| -rw-r--r-- | host/lib/experts/expert_nodes.hpp | 7 | 
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(); +        }      };      /*!--------------------------------------------------------- | 
