34 #ifndef ROSTIME_IMPL_DURATION_H_INCLUDED 35 #define ROSTIME_IMPL_DURATION_H_INCLUDED 47 : sec(_sec), nsec(_nsec)
57 return *
static_cast<T*
>(
this);
68 return *
static_cast<T*
>(
this);
74 return T(
sec + rhs.sec,
nsec + rhs.nsec);
86 return T(
sec - rhs.sec,
nsec - rhs.nsec);
99 return *
static_cast<T*
>(
this);
106 return *
static_cast<T*
>(
this);
113 return *
static_cast<T*
>(
this);
121 else if (
sec == rhs.sec &&
nsec < rhs.nsec)
131 else if (
sec == rhs.sec &&
nsec > rhs.nsec)
141 else if (
sec == rhs.sec &&
nsec <= rhs.nsec)
151 else if (
sec == rhs.sec &&
nsec >= rhs.nsec)
159 return sec == rhs.sec &&
nsec == rhs.nsec;
GLenum GLenum GLenum GLenum GLenum scale
T & operator+=(const T &rhs)
T & operator-=(const T &rhs)
bool operator<=(const T &rhs) const
bool operator<(const T &rhs) const
bool operator>=(const T &rhs) const
ROSTIME_DECL void normalizeSecNSecSigned(int64_t &sec, int64_t &nsec)
T operator+(const T &rhs) const
T operator*(double scale) const
bool operator==(const T &rhs) const
bool operator>(const T &rhs) const
T & operator*=(double scale)