OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenAB::TimeStamp Class Reference

Class representing time stamp. Allows for basic operations like adding and subtracting time stamps. More...

#include <TimeStamp.hpp>

Public Member Functions

 TimeStamp ()
 Constructor. More...
 
 TimeStamp (bool current)
 
 TimeStamp (__time_t s, __suseconds_t us)
 
virtual ~TimeStamp ()
 Destructor, virtual by default. More...
 
TimeStamp operator+ (const TimeStamp &other) const
 
TimeStamp operator- (const TimeStamp &other) const
 
TimeStampoperator+= (const TimeStamp &other)
 
TimeStampoperator-= (const TimeStamp &other)
 
bool operator< (const TimeStamp &other) const
 
bool operator<= (const TimeStamp &other) const
 
bool operator> (const TimeStamp &other) const
 
bool operator>= (const TimeStamp &other) const
 
void setNow ()
 
unsigned int toMs () const
 
std::string toString () const
 

Detailed Description

Class representing time stamp. Allows for basic operations like adding and subtracting time stamps.

Constructor & Destructor Documentation

OpenAB::TimeStamp::TimeStamp ( )

Constructor.

OpenAB::TimeStamp::TimeStamp ( bool  current)
OpenAB::TimeStamp::TimeStamp ( __time_t  s,
__suseconds_t  us 
)
OpenAB::TimeStamp::~TimeStamp ( )
virtual

Destructor, virtual by default.

Member Function Documentation

TimeStamp OpenAB::TimeStamp::operator+ ( const TimeStamp other) const
TimeStamp & OpenAB::TimeStamp::operator+= ( const TimeStamp other)
TimeStamp OpenAB::TimeStamp::operator- ( const TimeStamp other) const
TimeStamp & OpenAB::TimeStamp::operator-= ( const TimeStamp other)
bool OpenAB::TimeStamp::operator< ( const TimeStamp other) const
bool OpenAB::TimeStamp::operator<= ( const TimeStamp other) const
bool OpenAB::TimeStamp::operator> ( const TimeStamp other) const
bool OpenAB::TimeStamp::operator>= ( const TimeStamp other) const
void OpenAB::TimeStamp::setNow ( )
unsigned int OpenAB::TimeStamp::toMs ( ) const
std::string OpenAB::TimeStamp::toString ( ) const

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