Simple timer.
More...
#include <timer.hpp>
Simple timer.
Definition at line 31 of file timer.hpp.
hx3d::Timer::Timer |
( |
long |
delay, |
|
|
bool |
loop = false |
|
) |
| |
Create a timer with a delay as milliseconds.
- Parameters
-
Definition at line 30 of file timer.cpp.
bool hx3d::Timer::hasEnded |
( |
| ) |
|
Test if the timer has ended.
- Returns
- True/False
Definition at line 58 of file timer.cpp.
void hx3d::Timer::initialize |
( |
long |
delay, |
|
|
bool |
loop = false |
|
) |
| |
Initialize the timer with a delay.
- Parameters
-
Definition at line 34 of file timer.cpp.
bool hx3d::Timer::isLooping |
( |
| ) |
|
Is the timer looping ?
- Returns
- True/False
Definition at line 54 of file timer.cpp.
long hx3d::Timer::remaining |
( |
| ) |
|
Get the remaining time as milliseconds.
- Returns
- milliseconds
Definition at line 46 of file timer.cpp.
The documentation for this class was generated from the following files: