Time representation. Always wall-clock time. More...
#include <time.h>
Public Member Functions | |
WallTime () | |
WallTime (uint32_t _sec, uint32_t _nsec) | |
WallTime (double t) | |
Public Member Functions inherited from rs2rosinternal::TimeBase< WallTime, WallDuration > | |
WallTime & | fromNSec (uint64_t t) |
WallTime & | fromSec (double t) |
bool | is_zero () const |
bool | isZero () const |
bool | operator!= (const WallTime &rhs) const |
WallTime | operator+ (const WallDuration &rhs) const |
WallTime & | operator+= (const WallDuration &rhs) |
WallDuration | operator- (const WallTime &rhs) const |
WallTime | operator- (const WallDuration &rhs) const |
WallTime & | operator-= (const WallDuration &rhs) |
bool | operator< (const WallTime &rhs) const |
bool | operator<= (const WallTime &rhs) const |
bool | operator== (const WallTime &rhs) const |
bool | operator> (const WallTime &rhs) const |
bool | operator>= (const WallTime &rhs) const |
TimeBase () | |
TimeBase (uint32_t _sec, uint32_t _nsec) | |
TimeBase (double t) | |
uint64_t | toNSec () const |
double | toSec () const |
~TimeBase () | |
Static Public Member Functions | |
static bool | isSystemTime () |
static WallTime | now () |
Returns the current wall clock time. More... | |
static bool | sleepUntil (const WallTime &end) |
Sleep until a specific time has been reached. More... | |
Additional Inherited Members | |
Public Attributes inherited from rs2rosinternal::TimeBase< WallTime, WallDuration > | |
uint32_t | nsec |
uint32_t | sec |
Time representation. Always wall-clock time.
rs2rosinternal::TimeBase provides most of its functionality.
|
inlineexplicit |
|
inlinestatic |
|
static |
|
static |