OKVIS ROS
|
Duration representation for use with the Time class. More...
#include <Duration.hpp>
Public Member Functions | |
Duration () | |
Duration (int32_t _sec, int32_t _nsec) | |
Duration (double t) | |
Duration (const Rate &) | |
bool | sleep () const |
sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining. More... | |
Public Member Functions inherited from okvis::DurationBase< Duration > | |
DurationBase () | |
DurationBase (int32_t _sec, int32_t _nsec) | |
DurationBase (double t) | |
~DurationBase () | |
Duration | operator+ (const Duration &rhs) const |
Duration | operator- (const Duration &rhs) const |
Duration | operator- () const |
Duration | operator* (double scale) const |
Duration & | operator+= (const Duration &rhs) |
Duration & | operator-= (const Duration &rhs) |
Duration & | operator*= (double scale) |
bool | operator== (const Duration &rhs) const |
bool | operator!= (const Duration &rhs) const |
bool | operator> (const Duration &rhs) const |
bool | operator< (const Duration &rhs) const |
bool | operator>= (const Duration &rhs) const |
bool | operator<= (const Duration &rhs) const |
double | toSec () const |
int64_t | toNSec () const |
Duration & | fromSec (double t) |
Duration & | fromNSec (int64_t t) |
bool | isZero () |
Additional Inherited Members | |
Public Attributes inherited from okvis::DurationBase< Duration > | |
int32_t | sec |
int32_t | nsec |
Duration representation for use with the Time class.
okvis::DurationBase provides most of its functionality.
|
inline |
|
inline |
|
inlineexplicit |
|
explicit |
bool okvis::Duration::sleep | ( | ) | const |
sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.