18 #ifndef INCLUDED_UHD_TYPES_TIME_SPEC_HPP 19 #define INCLUDED_UHD_TYPES_TIME_SPEC_HPP 22 #include <boost/operators.hpp> 60 time_spec_t(time_t full_secs,
double frac_secs = 0);
69 time_spec_t(time_t full_secs,
long tick_count,
double tick_rate);
77 long get_tick_count(
double tick_rate)
const;
85 double get_real_secs(
void)
const;
91 time_t get_full_secs(
void)
const;
97 double get_frac_secs(
void)
const;
106 private: time_t _full_secs;
double _frac_secs;
Definition: time_spec.hpp:39
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
UHD_API bool operator<(const time_spec_t &, const time_spec_t &)
Implement less_than_comparable interface.
UHD_API bool operator==(const time_spec_t &, const time_spec_t &)
Implement equality_comparable interface.