Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly. More...
#include <time.h>
Public Member Functions | |
T & | fromNSec (uint64_t t) |
T & | fromSec (double t) |
bool | is_zero () const |
bool | isZero () const |
bool | operator!= (const T &rhs) const |
T | operator+ (const D &rhs) const |
T & | operator+= (const D &rhs) |
T | operator- (const D &rhs) const |
D | operator- (const T &rhs) const |
T & | operator-= (const D &rhs) |
bool | operator< (const T &rhs) const |
bool | operator<= (const T &rhs) const |
bool | operator== (const T &rhs) const |
bool | operator> (const T &rhs) const |
bool | operator>= (const T &rhs) const |
TimeBase () | |
TimeBase (double t) | |
TimeBase (uint32_t _sec, uint32_t _nsec) | |
uint64_t | toNSec () const |
double | toSec () const |
~TimeBase () | |
Public Attributes | |
uint32_t | nsec |
uint32_t | sec |
Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
T & roswrap::TimeBase< T, D >::fromNSec | ( | uint64_t | t | ) |
Definition at line 67 of file impl/time.h.
|
inline |
|
inline |
|
inline |
|
inline |
T roswrap::TimeBase< T, D >::operator+ | ( | const D & | rhs | ) | const |
Definition at line 94 of file impl/time.h.
T & roswrap::TimeBase< T, D >::operator+= | ( | const D & | rhs | ) |
Definition at line 107 of file impl/time.h.
T roswrap::TimeBase< T, D >::operator- | ( | const D & | rhs | ) | const |
Definition at line 88 of file impl/time.h.
D roswrap::TimeBase< T, D >::operator- | ( | const T & | rhs | ) | const |
Definition at line 81 of file impl/time.h.
T & roswrap::TimeBase< T, D >::operator-= | ( | const D & | rhs | ) |
Definition at line 114 of file impl/time.h.
bool roswrap::TimeBase< T, D >::operator< | ( | const T & | rhs | ) | const |
Definition at line 127 of file impl/time.h.
bool roswrap::TimeBase< T, D >::operator<= | ( | const T & | rhs | ) | const |
Definition at line 147 of file impl/time.h.
bool roswrap::TimeBase< T, D >::operator== | ( | const T & | rhs | ) | const |
Definition at line 121 of file impl/time.h.
bool roswrap::TimeBase< T, D >::operator> | ( | const T & | rhs | ) | const |
Definition at line 137 of file impl/time.h.
bool roswrap::TimeBase< T, D >::operator>= | ( | const T & | rhs | ) | const |
Definition at line 157 of file impl/time.h.
|
inline |
|
inline |
uint32_t roswrap::TimeBase< T, D >::nsec |
uint32_t roswrap::TimeBase< T, D >::sec |