|
|
| time () |
| | By default, initializes to length 0.
|
| |
| float | as_seconds () const |
| | Convert this time duration into seconds. More...
|
| |
| unsigned long | as_milliseconds () const |
| | Convert this time duration into milliseconds. More...
|
| |
| float | as_minutes () const |
| | Convert this time duration into minutes. More...
|
| |
|
time | operator+ (const time &other) |
| | Add two times together.
|
| |
|
time | operator- (const time &other) |
| | Subtract two time durations.
|
| |
|
time & | operator+= (const time &other) |
| | Add one duration to this.
|
| |
|
time & | operator-= (const time &other) |
| | Subtract a duration of time from this.
|
| |
|
bool | operator> (const time &other) |
| | Check if one duration is larger than another.
|
| |
|
bool | operator< (const time &other) |
| | Check if one duration is smaller than another.
|
| |
|
bool | operator>= (const time &other) |
| | Check if one duration is greater than or equal to another.
|
| |
|
bool | operator<= (const time &other) |
| | Check if one duration is smaller than or equal to another.
|
| |
|
bool | operator== (const time &other) |
| | Check if two durations are exactly equal.
|
| |
|
bool | operator!= (const time &other) |
| | Check if two durations aren't exactly equal.
|
| |
Class representing a duration of time.