Public Member Functions | List of all members
rs2rosinternal::WallDuration Class Reference

Duration representation for use with the WallTime class. More...

#include <duration.h>

Inheritance diagram for rs2rosinternal::WallDuration:
Inheritance graph
[legend]

Public Member Functions

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...
 
 WallDuration ()
 
 WallDuration (int32_t _sec, int32_t _nsec)
 
 WallDuration (double t)
 
 WallDuration (const Rate &)
 
- Public Member Functions inherited from rs2rosinternal::DurationBase< WallDuration >
 DurationBase ()
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
 DurationBase (double t)
 
WallDurationfromNSec (int64_t t)
 
WallDurationfromSec (double t)
 
bool isZero () const
 
bool operator!= (const WallDuration &rhs) const
 
WallDuration operator* (double scale) const
 
WallDurationoperator*= (double scale)
 
WallDuration operator+ (const WallDuration &rhs) const
 
WallDurationoperator+= (const WallDuration &rhs)
 
WallDuration operator- (const WallDuration &rhs) const
 
WallDuration operator- () const
 
WallDurationoperator-= (const WallDuration &rhs)
 
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
 
int64_t toNSec () const
 
double toSec () const
 
 ~DurationBase ()
 

Additional Inherited Members

- Public Attributes inherited from rs2rosinternal::DurationBase< WallDuration >
int32_t nsec
 
int32_t sec
 

Detailed Description

Duration representation for use with the WallTime class.

rs2rosinternal::DurationBase provides most of its functionality.

Definition at line 136 of file duration.h.

Constructor & Destructor Documentation

rs2rosinternal::WallDuration::WallDuration ( )
inline

Definition at line 139 of file duration.h.

rs2rosinternal::WallDuration::WallDuration ( int32_t  _sec,
int32_t  _nsec 
)
inline

Definition at line 143 of file duration.h.

rs2rosinternal::WallDuration::WallDuration ( double  t)
inlineexplicit

Definition at line 147 of file duration.h.

rs2rosinternal::WallDuration::WallDuration ( const Rate rate)
explicit

Definition at line 43 of file duration.cpp.

Member Function Documentation

bool rs2rosinternal::WallDuration::sleep ( ) const

sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.

Returns
True if the desired sleep duration was met, false otherwise.

Definition at line 462 of file time.cpp.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41