|
LPCGame
A Simple 2d Game Engine
|
Measures time, it's a timer. More...
#include <timer.h>
Public Member Functions | |
| void | Start () |
| Start the timer. | |
| void | Stop () |
| Stop the timer. | |
| void | Pause () |
| Pause the timer. | |
| void | Unpause () |
| Unpause the timer. | |
| int | Restart () |
| int | Ticks () const |
| bool | Started () const |
| Check if Timer is started. | |
| bool | Paused () const |
| Check if Timer is paused. | |
Measures time, it's a timer.
A simple timer
| int Timer::Restart | ( | ) |
Restart the timer and return the elapsed ticks
| int Timer::Ticks | ( | ) | const |
Get the elapsed ticks