#include <time.h>
Public Types | |
| typedef double | value_type |
| enum | Format { FORMAT_NORMAL = 0, FORMAT_NOSPACES = (1<<0), FORMAT_FULL = (1<<1), FORMAT_VIDEO = (1<<2), FORMAT_END = (1<<4) } |
Public Member Functions | |
| Time () | |
| Time (const value_type &x) | |
| Time (int x) | |
| Time (int hour, int minute, float second) | |
| Time (const String &string, float fps=0) | |
| Constructs Time from the given string. | |
| String | get_string (float fps=0, Time::Format format=FORMAT_NORMAL) const |
| Returns a string describing the current time value. | |
| bool | is_valid () const |
| Time | round (float fps) const |
| Rounds time to the nearest frame for the given frame rate, fps. | |
| bool | is_equal (const Time &rhs) const |
| bool | is_less_than (const Time &rhs) const |
| bool | is_more_than (const Time &rhs) const |
| operator double () const | |
| template<typename U> | |
| bool | operator< (const U &rhs) const |
| template<typename U> | |
| bool | operator> (const U &rhs) const |
| template<typename U> | |
| bool | operator<= (const U &rhs) const |
| template<typename U> | |
| bool | operator>= (const U &rhs) const |
| template<typename U> | |
| bool | operator== (const U &rhs) const |
| template<typename U> | |
| bool | operator!= (const U &rhs) const |
| bool | operator< (const Time &rhs) const |
| bool | operator> (const Time &rhs) const |
| bool | operator<= (const Time &rhs) const |
| bool | operator>= (const Time &rhs) const |
| bool | operator== (const Time &rhs) const |
| bool | operator!= (const Time &rhs) const |
| template<typename U> | |
| const Time & | operator+= (const U &rhs) |
| template<typename U> | |
| const Time & | operator-= (const U &rhs) |
| template<typename U> | |
| const Time & | operator *= (const U &rhs) |
| template<typename U> | |
| const Time & | operator/= (const U &rhs) |
| template<typename U> | |
| Time | operator+ (const U &rhs) const |
| template<typename U> | |
| Time | operator- (const U &rhs) const |
| template<typename U> | |
| Time | operator * (const U &rhs) const |
| template<typename U> | |
| Time | operator/ (const U &rhs) const |
| Time | operator- () const |
Static Public Member Functions | |
| static const Time | begin () |
| Marks the exclusive negative boundary of time. | |
| static const Time | end () |
| Marks the exclusive positive boundary of time. | |
| static const Time | zero () |
| Marks zero time. | |
| static const Time | epsilon () |
| The amount of allowable error in calculations. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
Constructs Time from the given string.
|
|
|
Marks the exclusive negative boundary of time.
|
|
|
Marks the exclusive positive boundary of time.
|
|
|
Marks zero time.
|
|
|
The amount of allowable error in calculations.
|
|
||||||||||||
|
Returns a string describing the current time value.
|
|
|
|
|
|
Rounds time to the nearest frame for the given frame rate, fps.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
|
1.4.6