 |
USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-3+b1
UHD and USRP Manual
|
|
Go to the documentation of this file.
8 #ifndef INCLUDED_UHD_TYPES_TIME_SPEC_HPP
9 #define INCLUDED_UHD_TYPES_TIME_SPEC_HPP
13 #include <boost/operators.hpp>
30 boost::additive<time_spec_t, double>,
31 boost::totally_ordered<time_spec_t>
54 time_spec_t(int64_t full_secs,
long tick_count,
double tick_rate);
78 long long to_ticks(
const double tick_rate)
const;
92 int64_t get_full_secs(
void)
const;
98 double get_frac_secs(
void)
const;
121 return this->_full_secs;
126 return this->_frac_secs;
time_spec_t & operator-=(const time_spec_t &)
Implement subtractable interface.
double get_frac_secs(void) const
Definition: time_spec.hpp:124
UHD_API bool operator<(const time_spec_t &, const time_spec_t &)
Implement less_than_comparable interface.
long long to_ticks(const double tick_rate) const
double get_real_secs(void) const
#define UHD_INLINE
Definition: config.h:53
UHD_API bool operator==(const time_spec_t &, const time_spec_t &)
Implement equality_comparable interface.
#define UHD_API
Definition: config.h:68
long get_tick_count(double tick_rate) const
Definition: build_info.hpp:13
Definition: time_spec.hpp:32
time_spec_t & operator+=(double &)
time_spec_t(int64_t full_secs, double frac_secs=0)
time_spec_t & operator-=(double &)
time_spec_t(double secs=0)
int64_t get_full_secs(void) const
Definition: time_spec.hpp:119
static time_spec_t from_ticks(long long ticks, double tick_rate)
time_spec_t & operator+=(const time_spec_t &)
Implement addable interface.
time_spec_t(int64_t full_secs, long tick_count, double tick_rate)