|
Simple++
Powerfull and lightning fast C++ Library
|
Classes | |
| class | Date |
| Class representing a date in the time (day/month/year hour etc...) More... | |
| class | Duration |
| Class representing a time duration, ratio fractional number representing the number of seconds of one unit in this object. More... | |
| class | Tick |
| Representing a number of CPU ticks. More... | |
| class | TimePoint |
| Class representing a precise moment in the time. More... | |
Typedefs | |
| typedef time_t | TimeT |
| typedef Math::Ratio< 3600 *24, 1 > | Day |
| typedef Math::Ratio< 3600, 1 > | Hour |
| typedef Math::Ratio< 60, 1 > | Minute |
| typedef Math::Ratio< 1, 1 > | Second |
| typedef Math::Ratio< 1, 100 > | CentiSecond |
| typedef Math::Ratio< 1, 1000 > | MilliSecond |
| typedef Math::Ratio< 1, 1000000 > | NanoSecond |
| typedef Math::Ratio< 1, 1000000000 > | PicoSecond |
| typedef clock_t | ClockT |
Functions | |
| Date | getDate () |
| Duration< Second > | operator- (const Date &d1, const Date &d2) |
| template<typename ratio > | |
| Date | operator+ (const Date &date, const Duration< ratio > &duration) |
| template<typename ratio > | |
| Date | operator+ (const Duration< ratio > &duration, const Date &date) |
| template<typename ratio > | |
| Date | operator- (const Date &date, const Duration< ratio > &duration) |
| template<class ratio , class ratio2 > | |
| Duration< ratio > | operator+ (const Duration< ratio > &d1, const Duration< ratio2 > &d2) |
| template<class ratio > | |
| Duration< ratio > | operator+ (const Duration< ratio > &d1, TimeT d2) |
| template<class ratio > | |
| Duration< ratio > | operator+ (TimeT d1, const Duration< ratio > &d2) |
| template<class ratio , class ratio2 > | |
| Duration< ratio > | operator- (const Duration< ratio > &d1, const Duration< ratio2 > &d2) |
| template<class ratio > | |
| Duration< ratio > | operator- (const Duration< ratio > &d1, TimeT d2) |
| template<class ratio > | |
| Duration< ratio > | operator- (TimeT d1, const Duration< ratio > &d2) |
| template<class ratio , typename T > | |
| Duration< ratio > | operator* (const Duration< ratio > &d1, const T &v) |
| template<typename T , class ratio > | |
| Duration< ratio > | operator* (const T &v, const Duration< ratio > &d1) |
| template<class ratio , typename T > | |
| Duration< ratio > | operator/ (const Duration< ratio > &d1, const T &v) |
| Time::Tick | operator- (const Tick &t1, const Tick &t2) |
| Tick | getClock () |
| TimePoint | getTime () |
| get the TimePoint of Now More... | |
| TimePoint | operator+ (const TimePoint &t1, TimeT t2) |
| TimePoint | operator+ (TimeT t1, const TimePoint &t2) |
| TimePoint | operator- (const TimePoint &t1, TimeT t2) |
| TimePoint | operator- (TimeT t1, const TimePoint &t2) |
| Duration< Second > | operator- (const TimePoint &t1, const TimePoint &t2) |
| template<class ratio > | |
| TimePoint | operator+ (const TimePoint &t1, const Duration< ratio > &d) |
| template<class ratio > | |
| TimePoint | operator+ (const Duration< ratio > &d, const TimePoint &t2) |
| template<class ratio > | |
| TimePoint | operator- (const TimePoint &t1, const Duration< ratio > &d) |
| template<class ratio > | |
| void | sleep (const Duration< ratio > &d) |
| void | sleep (unsigned long ms) |
Variables | |
| constexpr ClockT | TicksPerSec = CLOCKS_PER_SEC |
| typedef Math::Ratio<1, 100> Time::CentiSecond |
| typedef clock_t Time::ClockT |
| typedef Math::Ratio<3600 * 24, 1> Time::Day |
| typedef Math::Ratio<3600, 1> Time::Hour |
| typedef Math::Ratio<1, 1000> Time::MilliSecond |
| typedef Math::Ratio<60, 1> Time::Minute |
| typedef Math::Ratio<1, 1000000> Time::NanoSecond |
| typedef Math::Ratio<1, 1000000000> Time::PicoSecond |
| typedef Math::Ratio<1, 1> Time::Second |
| typedef time_t Time::TimeT |
| Tick Time::getClock | ( | ) |
| Date Time::getDate | ( | ) |
| Duration< ratio > Time::operator* | ( | const Duration< ratio > & | d1, |
| const T & | v | ||
| ) |
| Duration< ratio > Time::operator* | ( | const T & | v, |
| const Duration< ratio > & | d1 | ||
| ) |
| TimePoint Time::operator+ | ( | const TimePoint & | t1, |
| const Duration< ratio > & | d | ||
| ) |
| TimePoint Time::operator+ | ( | const Duration< ratio > & | d, |
| const TimePoint & | t2 | ||
| ) |
| Duration< ratio > Time::operator+ | ( | const Duration< ratio > & | d1, |
| const Duration< ratio2 > & | d2 | ||
| ) |
| Date Time::operator+ | ( | const Date & | date, |
| const Duration< ratio > & | duration | ||
| ) |
| Date Time::operator+ | ( | const Duration< ratio > & | duration, |
| const Date & | date | ||
| ) |
| TimePoint Time::operator- | ( | const TimePoint & | t1, |
| const Duration< ratio > & | d | ||
| ) |
| Duration< ratio > Time::operator- | ( | const Duration< ratio > & | d1, |
| const Duration< ratio2 > & | d2 | ||
| ) |
| Date Time::operator- | ( | const Date & | date, |
| const Duration< ratio > & | duration | ||
| ) |
| Duration< ratio > Time::operator/ | ( | const Duration< ratio > & | d1, |
| const T & | v | ||
| ) |
| void Time::sleep | ( | const Duration< ratio > & | d | ) |
| void Time::sleep | ( | unsigned long | ms | ) |
| constexpr ClockT Time::TicksPerSec = CLOCKS_PER_SEC |
1.8.11