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

Detailed Description

Represents a point in time with microsecond accuracy.

Public Member Functions

 TimeStamp (const struct timeval &timestamp)
 
 TimeStamp (const struct timespec &timestamp)
 
 TimeStamp (const TimeStamp &other)
 
TimeStampoperator= (const TimeStamp &other)
 
TimeStampoperator= (const struct timeval &tv)
 
TimeStampoperator= (const struct timespec &ts)
 
bool operator== (const TimeStamp &other) const
 
bool operator!= (const TimeStamp &other) const
 
bool operator> (const TimeStamp &other) const
 
bool operator>= (const TimeStamp &other) const
 
bool operator< (const TimeStamp &other) const
 
bool operator<= (const TimeStamp &other) const
 
TimeStampoperator+= (const TimeInterval &interval)
 
TimeStampoperator-= (const TimeInterval &interval)
 
const TimeStamp operator+ (const TimeInterval &interval) const
 
const TimeInterval operator- (const TimeStamp &other) const
 
const TimeStamp operator- (const TimeInterval &interval) const
 
bool IsSet () const
 
time_t Seconds () const
 
int32_t MicroSeconds () const
 
std::string ToString () const
 

Friends

std::ostream & operator<< (std::ostream &out, const TimeStamp &timestamp)
 

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