- nom
- Timer
Public Member Functions | |
| void | start (void) |
| void | stop (void) |
| void | restart (void) |
| Alias for start. | |
| void | pause (void) |
| void | unpause (void) |
| uint32 | ticks (void) const |
| bool | started (void) const |
| bool | paused (void) const |
| const std::string | ticksAsString (void) const |
| uint32 | seconds (float milliseconds) const |
| Helper method; conversion from milliseconds to seconds. | |
Private Attributes | |
| uint32 | elapsed_ticks |
| Milliseconds since timer start. | |
| uint32 | paused_ticks |
| Holds ticks while paused. | |
| bool | timer_paused |
| Tracks whether we are paused or not. | |
| bool | timer_started |
| Tracks whether we are started or not. | |