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