From df946523010929944cab487669defec2059951d4 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 13 Feb 2012 19:22:26 -0800 Subject: uhd: inline time spec accessors for minor improvement --- host/include/uhd/types/time_spec.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/types/time_spec.hpp b/host/include/uhd/types/time_spec.hpp index cf8588c5b..e7d7d5ab4 100644 --- a/host/include/uhd/types/time_spec.hpp +++ b/host/include/uhd/types/time_spec.hpp @@ -128,6 +128,14 @@ namespace uhd{ //! Implement less_than_comparable interface UHD_API bool operator<(const time_spec_t &, const time_spec_t &); + UHD_INLINE time_t time_spec_t::get_full_secs(void) const{ + return this->_full_secs; + } + + UHD_INLINE double time_spec_t::get_frac_secs(void) const{ + return this->_frac_secs; + } + } //namespace uhd #endif /* INCLUDED_UHD_TYPES_TIME_SPEC_HPP */ -- cgit v1.2.3