OKVIS ROS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
okvis::WallTime Class Reference

Time representation. Always wall-clock time. More...

#include <Time.hpp>

Inheritance diagram for okvis::WallTime:
okvis::TimeBase< WallTime, WallDuration >

Public Member Functions

 WallTime ()
 
 WallTime (uint32_t _sec, uint32_t _nsec)
 
 WallTime (double t)
 
- Public Member Functions inherited from okvis::TimeBase< WallTime, WallDuration >
 TimeBase ()
 
 TimeBase (uint32_t _sec, uint32_t _nsec)
 
 TimeBase (double t)
 
 ~TimeBase ()
 
WallDuration operator- (const WallTime &rhs) const
 
WallTime operator- (const WallDuration &rhs) const
 
WallTime operator+ (const WallDuration &rhs) const
 
WallTimeoperator+= (const WallDuration &rhs)
 
WallTimeoperator-= (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
 
bool operator<= (const WallTime &rhs) const
 
double toSec () const
 
WallTimefromSec (double t)
 
uint64_t toNSec () const
 
WallTimefromNSec (uint64_t t)
 
bool isZero () const
 
bool is_zero () const
 

Static Public Member Functions

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...
 
static bool isSystemTime ()
 

Additional Inherited Members

- Public Attributes inherited from okvis::TimeBase< WallTime, WallDuration >
uint32_t sec
 
uint32_t nsec
 

Detailed Description

Time representation. Always wall-clock time.

okvis::TimeBase provides most of its functionality.

Constructor & Destructor Documentation

okvis::WallTime::WallTime ( )
inline
okvis::WallTime::WallTime ( uint32_t  _sec,
uint32_t  _nsec 
)
inline
okvis::WallTime::WallTime ( double  t)
inlineexplicit

Member Function Documentation

static bool okvis::WallTime::isSystemTime ( )
inlinestatic
WallTime okvis::WallTime::now ( )
static

Returns the current wall clock time.

bool okvis::WallTime::sleepUntil ( const WallTime end)
static

Sleep until a specific time has been reached.


The documentation for this class was generated from the following files: