Simple++
Powerfull and lightning fast C++ Library
|
Class representing a time duration, ratio fractional number representing the number of seconds of one unit in this object. More...
#include <Duration.h>
Public Member Functions | |
Duration () | |
template<class ratio2 > | |
Duration (const Duration< ratio2 > &d) | |
Duration (TimeT d) | |
Duration (const Tick &ticks) | |
template<class ratio2 > | |
bool | operator== (const Duration< ratio2 > &d) const |
template<class ratio2 > | |
bool | operator!= (const Duration< ratio2 > &d) const |
template<class ratio2 > | |
bool | operator>= (const Duration< ratio2 > &d) const |
template<class ratio2 > | |
bool | operator<= (const Duration< ratio2 > &d) const |
template<class ratio2 > | |
bool | operator< (const Duration< ratio2 > &d) const |
template<class ratio2 > | |
bool | operator> (const Duration< ratio2 > &d) const |
bool | operator== (TimeT d) const |
bool | operator!= (TimeT d) const |
bool | operator>= (TimeT d) const |
bool | operator<= (TimeT d) const |
bool | operator< (TimeT d) const |
bool | operator> (TimeT d) const |
template<class ratio2 > | |
Duration< ratio > & | operator= (const Duration< ratio2 > &d) |
template<class ratio2 > | |
Duration< ratio > & | operator+= (const Duration< ratio2 > &d) |
template<class ratio2 > | |
Duration< ratio > & | operator-= (const Duration< ratio2 > &d) |
Duration< ratio > & | operator= (TimeT d) |
Duration< ratio > & | operator+= (TimeT d) |
Duration< ratio > & | operator-= (TimeT d) |
template<typename T > | |
Duration< ratio > & | operator*= (const T &d) |
template<typename T > | |
Duration< ratio > & | operator/= (const T &d) |
unsigned long long | getMilliSeconds () const |
get the number of milliseconds of this duration More... | |
unsigned long long | getSeconds () const |
get the number of seconds of this duration More... | |
unsigned long long | getMinutes () const |
get the number of Minutes of this duration More... | |
unsigned long long | getHours () const |
get the number of Hours of this duration More... | |
unsigned long long | getDays () const |
get the number of Days of this duration More... | |
TimeT | getValue () const |
Get the value of this duration without any conversion. More... | |
Class representing a time duration, ratio fractional number representing the number of seconds of one unit in this object.
Time::Duration< ratio >::Duration | ( | ) |
Time::Duration< ratio >::Duration | ( | const Duration< ratio2 > & | d | ) |
Time::Duration< ratio >::Duration | ( | TimeT | d | ) |
Time::Duration< ratio >::Duration | ( | const Tick & | ticks | ) |
unsigned long long Time::Duration< ratio >::getDays | ( | ) | const |
get the number of Days of this duration
unsigned long long Time::Duration< ratio >::getHours | ( | ) | const |
get the number of Hours of this duration
unsigned long long Time::Duration< ratio >::getMilliSeconds | ( | ) | const |
get the number of milliseconds of this duration
unsigned long long Time::Duration< ratio >::getMinutes | ( | ) | const |
get the number of Minutes of this duration
unsigned long long Time::Duration< ratio >::getSeconds | ( | ) | const |
get the number of seconds of this duration
TimeT Time::Duration< ratio >::getValue | ( | ) | const |
Get the value of this duration without any conversion.
bool Time::Duration< ratio >::operator!= | ( | const Duration< ratio2 > & | d | ) | const |
bool Time::Duration< ratio >::operator!= | ( | TimeT | d | ) | const |
Duration< ratio > & Time::Duration< ratio >::operator*= | ( | const T & | d | ) |
Duration< ratio > & Time::Duration< ratio >::operator+= | ( | const Duration< ratio2 > & | d | ) |
Duration< ratio > & Time::Duration< ratio >::operator+= | ( | TimeT | d | ) |
Duration< ratio > & Time::Duration< ratio >::operator-= | ( | const Duration< ratio2 > & | d | ) |
Duration< ratio > & Time::Duration< ratio >::operator-= | ( | TimeT | d | ) |
Duration< ratio > & Time::Duration< ratio >::operator/= | ( | const T & | d | ) |
bool Time::Duration< ratio >::operator< | ( | const Duration< ratio2 > & | d | ) | const |
bool Time::Duration< ratio >::operator< | ( | TimeT | d | ) | const |
bool Time::Duration< ratio >::operator<= | ( | const Duration< ratio2 > & | d | ) | const |
bool Time::Duration< ratio >::operator<= | ( | TimeT | d | ) | const |
Duration< ratio > & Time::Duration< ratio >::operator= | ( | const Duration< ratio2 > & | d | ) |
Duration< ratio > & Time::Duration< ratio >::operator= | ( | TimeT | d | ) |
bool Time::Duration< ratio >::operator== | ( | const Duration< ratio2 > & | d | ) | const |
bool Time::Duration< ratio >::operator== | ( | TimeT | d | ) | const |
bool Time::Duration< ratio >::operator> | ( | const Duration< ratio2 > & | d | ) | const |
bool Time::Duration< ratio >::operator> | ( | TimeT | d | ) | const |
bool Time::Duration< ratio >::operator>= | ( | const Duration< ratio2 > & | d | ) | const |
bool Time::Duration< ratio >::operator>= | ( | TimeT | d | ) | const |