Public Member Functions | Static Public Member Functions | List of all members
ros::WallTime Class Reference

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

#include <time.h>

Inheritance diagram for ros::WallTime:
Inheritance graph

Public Member Functions

 WallTime ()
 WallTime (uint32_t _sec, uint32_t _nsec)
 WallTime (double t)
- Public Member Functions inherited from ros::TimeBase< WallTime, WallDuration >
WallTimefromNSec (uint64_t t)
WallTimefromSec (double t)
bool is_zero () const
bool isZero () const
bool operator!= (const WallTime &rhs) const
WallTime operator+ (const WallDuration &rhs) const
WallTimeoperator+= (const WallDuration &rhs)
WallDuration operator- (const WallTime &rhs) const
WallTime operator- (const WallDuration &rhs) const
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
 TimeBase ()
 TimeBase (uint32_t _sec, uint32_t _nsec)
 TimeBase (double t)
boost::posix_time::ptime toBoost () const
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 ros::TimeBase< WallTime, WallDuration >
uint32_t nsec
uint32_t sec

Detailed Description

Time representation. Always wall-clock time.

ros::TimeBase provides most of its functionality.

Definition at line 237 of file time.h.

Constructor & Destructor Documentation

ros::WallTime::WallTime ( )

Definition at line 240 of file time.h.

ros::WallTime::WallTime ( uint32_t  _sec,
uint32_t  _nsec 

Definition at line 244 of file time.h.

ros::WallTime::WallTime ( double  t)

Definition at line 248 of file time.h.

Member Function Documentation

static bool ros::WallTime::isSystemTime ( )

Definition at line 261 of file time.h.

WallTime ros::WallTime::now ( )

Returns the current wall clock time.

Definition at line 515 of file src/time.cpp.

bool ros::WallTime::sleepUntil ( const WallTime end)

Sleep until a specific time has been reached.

True if the desired sleep time was met, false otherwise.

Definition at line 439 of file src/time.cpp.

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

Author(s): Josh Faust
autogenerated on Sat Feb 3 2018 03:22:37