aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-13 19:22:26 -0800
committerJosh Blum <josh@joshknows.com>2012-02-13 19:22:26 -0800
commitdf946523010929944cab487669defec2059951d4 (patch)
tree4df93be018f4c0c10bbdb264df1a6529e891ef45 /host/include
parent4a27f6e4bdad5e4de743e77f0a998dbe1e852cf0 (diff)
downloaduhd-df946523010929944cab487669defec2059951d4.tar.gz
uhd-df946523010929944cab487669defec2059951d4.tar.bz2
uhd-df946523010929944cab487669defec2059951d4.zip
uhd: inline time spec accessors for minor improvement
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/time_spec.hpp8
1 files changed, 8 insertions, 0 deletions
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 */