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

Detailed Description

A time interval, with usecond accuracy.

Public Member Functions

 TimeInterval (int32_t sec, int32_t usec)
 
 TimeInterval (int64_t usec)
 
 TimeInterval (const TimeInterval &other)
 
TimeIntervaloperator= (const TimeInterval &other)
 
bool operator== (const TimeInterval &other) const
 
bool operator!= (const TimeInterval &other) const
 
bool operator> (const TimeInterval &other) const
 
bool operator>= (const TimeInterval &other) const
 
bool operator< (const TimeInterval &other) const
 
bool operator<= (const TimeInterval &other) const
 
TimeIntervaloperator+= (const TimeInterval &other)
 
TimeInterval operator* (unsigned int i) const
 
bool IsZero () const
 
void AsTimeval (struct timeval *tv) const
 
time_t Seconds () const
 
int32_t MicroSeconds () const
 
int64_t InMilliSeconds () const
 
int64_t AsInt () const
 
std::string ToString () const
 

Friends

class TimeStamp
 
std::ostream & operator<< (std::ostream &out, const TimeInterval &interval)
 

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