#include <timer.h>
Public Member Functions | |
Uint32 | ticks () const |
get the SDL ticks (milliseconds) field of the time | |
Info | info () const |
parse the time into days, hours, etc. | |
bool | operator== (const Time &t) const |
check equality of two times | |
bool | operator!= (const Time &t) const |
check inequality of two times | |
bool | operator< (const Time &t) const |
check whether one time occured before another | |
bool | operator> (const Time &t) const |
check whether one time occured after another | |
bool | operator<= (const Time &t) const |
check whether one time occured before another | |
bool | operator>= (const Time &t) const |
check whether one time occured after another | |
int | operator- (const Time &t) const |
find the difference between two times (only valid if the difference can fit in an int) | |
Time & | operator+= (Uint32) |
increment a timestamp | |
Time & | operator-= (Uint32) |
decrement a timestamp | |
Time & | operator+= (int val) |
increment a timestamp | |
Time & | operator-= (int val) |
decrement a timestamp | |
Time | operator+ (Uint32 val) const |
increment a timestamp | |
Time | operator- (Uint32 val) const |
decrement a timestamp | |
Time | operator+ (int val) const |
increment a timestamp | |
Time | operator- (int val) const |
decrement a timestamp | |
Static Public Member Functions | |
Time | now () |
get the current time |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.