Simple++
Powerfull and lightning fast C++ Library
|
Class representing a precise moment in the time. More...
#include <TimePoint.h>
Public Member Functions | |
TimePoint () | |
create an uninitialized TimePoint. See getTime() of getting the timepoint of the current time. More... | |
TimePoint (const TimeT &timeT) | |
Create a TimePoint from an old school time_t object. More... | |
void | setNow () |
set this object to store the current moment. More... | |
bool | operator== (const TimePoint &timePoint) const |
bool | operator!= (const TimePoint &timePoint) const |
bool | operator>= (const TimePoint &timePoint) const |
bool | operator<= (const TimePoint &timePoint) const |
bool | operator< (const TimePoint &timePoint) const |
bool | operator> (const TimePoint &timePoint) const |
TimePoint & | operator= (const TimePoint &timePoint) |
TimePoint & | operator= (const TimeT &timeT) |
template<class ratio > | |
TimePoint & | operator+= (const Duration< ratio > &d) |
template<class ratio > | |
TimePoint & | operator-= (const Duration< ratio > &d) |
TimePoint & | operator+= (TimeT t) |
TimePoint & | operator-= (TimeT t) |
~TimePoint () | |
void | setTime (const TimeT &t) |
const TimeT & | getTime () const |
Static Public Member Functions | |
static TimePoint | getNow () |
Class representing a precise moment in the time.
Time::TimePoint::TimePoint | ( | ) |
Time::TimePoint::TimePoint | ( | const TimeT & | timeT | ) |
Create a TimePoint from an old school time_t object.
Time::TimePoint::~TimePoint | ( | ) |
|
static |
const TimeT & Time::TimePoint::getTime | ( | ) | const |
bool Time::TimePoint::operator!= | ( | const TimePoint & | timePoint | ) | const |
bool Time::TimePoint::operator< | ( | const TimePoint & | timePoint | ) | const |
bool Time::TimePoint::operator<= | ( | const TimePoint & | timePoint | ) | const |
bool Time::TimePoint::operator== | ( | const TimePoint & | timePoint | ) | const |
bool Time::TimePoint::operator> | ( | const TimePoint & | timePoint | ) | const |
bool Time::TimePoint::operator>= | ( | const TimePoint & | timePoint | ) | const |
void Time::TimePoint::setNow | ( | ) |
set this object to store the current moment.
void Time::TimePoint::setTime | ( | const TimeT & | t | ) |