Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::BaseTimeVal Class Reference

Detailed Description

Don't use this class directly. It's an implementation detail of TimeInterval and TimeStamp.

Public Member Functions

 BaseTimeVal (int32_t sec, int32_t usec)
 
 BaseTimeVal (const struct timeval &timestamp)
 
 BaseTimeVal (const struct timespec &timestamp)
 
 BaseTimeVal (int64_t interval_useconds)
 
 BaseTimeVal (const BaseTimeVal &other)
 
BaseTimeValoperator= (const BaseTimeVal &other)
 
BaseTimeValoperator= (const struct timeval &tv)
 
BaseTimeValoperator= (const struct timespec &ts)
 
bool operator== (const BaseTimeVal &other) const
 
bool operator!= (const BaseTimeVal &other) const
 
bool operator> (const BaseTimeVal &other) const
 
bool operator>= (const BaseTimeVal &other) const
 
bool operator< (const BaseTimeVal &other) const
 
bool operator<= (const BaseTimeVal &other) const
 
BaseTimeValoperator+= (const BaseTimeVal &other)
 
BaseTimeValoperator-= (const BaseTimeVal &other)
 
const BaseTimeVal operator+ (const BaseTimeVal &interval) const
 
const BaseTimeVal operator- (const BaseTimeVal &other) const
 
BaseTimeVal operator* (unsigned int i) const
 
bool IsSet () const
 
void AsTimeval (struct timeval *tv) const
 
time_t Seconds () const
 Returns the seconds portion of the BaseTimeVal. More...
 
int32_t MicroSeconds () const
 Returns the microseconds portion of the BaseTimeVal. More...
 
int64_t InMilliSeconds () const
 Returns the entire BaseTimeVal as milliseconds. More...
 
int64_t AsInt () const
 Returns the entire BaseTimeVal as microseconds. More...
 
std::string ToString () const
 

Member Function Documentation

◆ AsInt()

int64_t ola::BaseTimeVal::AsInt ( ) const

Returns the entire BaseTimeVal as microseconds.

Returns
The entire BaseTimeVal in microseconds

◆ InMilliSeconds()

int64_t ola::BaseTimeVal::InMilliSeconds ( ) const

Returns the entire BaseTimeVal as milliseconds.

Returns
The entire BaseTimeVal in milliseconds

◆ MicroSeconds()

int32_t ola::BaseTimeVal::MicroSeconds ( ) const
inline

Returns the microseconds portion of the BaseTimeVal.

Returns
The microseconds portion of the BaseTimeVal

◆ Seconds()

time_t ola::BaseTimeVal::Seconds ( ) const
inline

Returns the seconds portion of the BaseTimeVal.

Returns
The seconds portion of the BaseTimeVal

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