35 #ifndef ROS_TIME_IMPL_H_INCLUDED 36 #define ROS_TIME_IMPL_H_INCLUDED 54 #include <sys/timeb.h> 62 template<
class T,
class D>
73 return *
static_cast<T*
>(
this);
76 template<
class T,
class D>
83 template<
class T,
class D>
86 return *
static_cast<const T*
>(
this) + ( -rhs);
89 template<
class T,
class D>
102 template<
class T,
class D>
106 return *
static_cast<T*
>(
this);
109 template<
class T,
class D>
113 return *
static_cast<T*
>(
this);
116 template<
class T,
class D>
119 return sec == rhs.sec && nsec == rhs.nsec;
122 template<
class T,
class D>
127 else if (sec == rhs.sec && nsec < rhs.nsec)
132 template<
class T,
class D>
137 else if (sec == rhs.sec && nsec > rhs.nsec)
142 template<
class T,
class D>
147 else if (sec == rhs.sec && nsec <= rhs.nsec)
152 template<
class T,
class D>
157 else if (sec == rhs.sec && nsec >= rhs.nsec)
177 #endif // ROS_IMPL_TIME_H_INCLUDED
ROSTIME_DECL void normalizeSecNSec(uint64_t &sec, uint64_t &nsec)
bool operator==(const T &rhs) const
bool operator<=(const T &rhs) const
T & operator-=(const D &rhs)
bool operator>(const T &rhs) const
T operator+(const D &rhs) const
ROSTIME_DECL void normalizeSecNSecUnsigned(int64_t &sec, int64_t &nsec)
unsigned __int64 uint64_t
T & operator+=(const D &rhs)
D operator-(const T &rhs) const
bool operator<(const T &rhs) const
bool operator>=(const T &rhs) const