Go to the documentation of this file.
18 #ifndef INCLUDED_TYPES_TIME_SPEC_HPP
19 #define INCLUDED_TYPES_TIME_SPEC_HPP
22 #include <boost/operators.hpp>
68 time_spec_t(time_t full_secs,
long tick_count,
double tick_rate);
92 long long to_ticks(
const double tick_rate)
const;
106 time_t get_full_secs(
void)
const;
112 double get_frac_secs(
void)
const;
121 private: time_t _full_secs;
double _frac_secs;
131 return this->_full_secs;
135 return this->_frac_secs;
bool operator==(const time_spec_t &, const time_spec_t &)
Implement equality_comparable interface.
time_spec_t(time_t full_secs, double frac_secs=0)
long long to_ticks(const double tick_rate) const
time_spec_t(const time_spec_t &spec)
time_spec_t(time_t full_secs, long tick_count, double tick_rate)
time_spec_t(double secs=0)
time_t get_full_secs(void) const
Definition: time_spec.h:130
double get_real_secs(void) const
static time_spec_t from_ticks(long long ticks, double tick_rate)
time_spec_t & operator+=(const time_spec_t &)
Implement addable interface.
Definition: time_spec.h:40
Definition: constants.h:29
double get_frac_secs(void) const
Definition: time_spec.h:134
#define GRGSM_API
Definition: api.h:31
bool operator<(const time_spec_t &, const time_spec_t &)
Implement less_than_comparable interface.
long get_tick_count(double tick_rate) const
time_spec_t & operator-=(const time_spec_t &)
Implement subtractable interface.