libvisual
0.5.0
|
Public Member Functions | |
Timer () | |
Creates a new Timer. | |
Timer (Timer const &timer) | |
Copy constructor. | |
Timer (Timer &&rhs) | |
Move constructor. | |
~Timer () | |
Destructor. | |
Timer & | operator= (Timer const &rhs) |
Copy assignment operator. | |
Timer & | operator= (Timer &&rhs) |
Move assignment operator. | |
bool | is_active () const |
Checks if the timer is active. | |
void | reset () |
Resets the timer. | |
void | start () |
Starts the timer. | |
void | stop () |
Stops the timer. | |
Time | get_start_time () const |
Time | get_end_time () const |
Time | elapsed () const |
Returns the length of time since the timer was started. | |
bool | is_past (Time const &age) const |