Choreonoid  1.8
Public Member Functions | Friends | List of all members
cnoid::Timeval Class Reference

#include <Timeval.h>

Public Member Functions

 Timeval ()
 
 Timeval (long sec, long usec)
 
 Timeval (long long usec)
 
 operator long long () const
 
Timevaloperator+= (Timeval rhs)
 
Timevaloperator-= (Timeval rhs)
 
Timevaloperator%= (Timeval rhs)
 

Friends

Timeval operator+ (Timeval x, Timeval y)
 
Timeval operator- (Timeval x, Timeval y)
 
Timeval operator% (Timeval x, Timeval y)
 
bool operator== (Timeval x, Timeval y)
 
bool operator< (Timeval x, Timeval y)
 
bool operator!= (Timeval x, Timeval y)
 
bool operator> (Timeval x, Timeval y)
 
bool operator<= (Timeval x, Timeval y)
 
bool operator>= (Timeval x, Timeval y)
 
std::ostream & operator<< (std::ostream &os, Timeval x)
 

Detailed Description

A class like the timeval struct used with the gettimeofday function. The following definition is based on the xtime class, which is an example presented by the documentation of the boost.chrono library.

Constructor & Destructor Documentation

◆ Timeval() [1/3]

cnoid::Timeval::Timeval ( )
inline

◆ Timeval() [2/3]

cnoid::Timeval::Timeval ( long  sec,
long  usec 
)
inlineexplicit

◆ Timeval() [3/3]

cnoid::Timeval::Timeval ( long long  usec)
inlineexplicit

Member Function Documentation

◆ operator long long()

cnoid::Timeval::operator long long ( ) const
inline

◆ operator%=()

Timeval& cnoid::Timeval::operator%= ( Timeval  rhs)
inline

◆ operator+=()

Timeval& cnoid::Timeval::operator+= ( Timeval  rhs)
inline

◆ operator-=()

Timeval& cnoid::Timeval::operator-= ( Timeval  rhs)
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( Timeval  x,
Timeval  y 
)
friend

◆ operator%

Timeval operator% ( Timeval  x,
Timeval  y 
)
friend

◆ operator+

Timeval operator+ ( Timeval  x,
Timeval  y 
)
friend

◆ operator-

Timeval operator- ( Timeval  x,
Timeval  y 
)
friend

◆ operator<

bool operator< ( Timeval  x,
Timeval  y 
)
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
Timeval  x 
)
friend

◆ operator<=

bool operator<= ( Timeval  x,
Timeval  y 
)
friend

◆ operator==

bool operator== ( Timeval  x,
Timeval  y 
)
friend

◆ operator>

bool operator> ( Timeval  x,
Timeval  y 
)
friend

◆ operator>=

bool operator>= ( Timeval  x,
Timeval  y 
)
friend

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