#include <timer.h>
Public Member Functions | |
Construction | |
| CL_Timer () | |
| Creates a timer object. | |
| virtual | ~CL_Timer () |
| Destroys the timer object. | |
| bool | is_repeating () const |
| Returns true if the timer repeats until it is stopped. | |
| unsigned int | get_timeout () const |
| Returns the current timeout. In milliseconds. | |
Events | |
| CL_Callback_v0 & | func_expired () |
| Callback invoked every time the timer interval occurs. | |
Operations | |
| void | start (unsigned int timeout, bool repeat=true) |
| Starts the timer. Timeout in milliseconds. | |
| void | stop () |
| Stop the timer. | |
|
|
Creates a timer object.
|
|
|
Destroys the timer object.
|
|
|
Callback invoked every time the timer interval occurs.
|
|
|
Returns the current timeout. In milliseconds.
|
|
|
Returns true if the timer repeats until it is stopped.
|
|
||||||||||||
|
Starts the timer. Timeout in milliseconds.
|
|
|
Stop the timer.
|
1.4.6