* Returns the time passed since the last interval. * @return Time in milliseconds. */
| 84 | * @return Time in milliseconds. |
| 85 | */ |
| 86 | Uint32 Timer::getTime() const |
| 87 | { |
| 88 | if (_running) |
| 89 | { |
| 90 | return slowTick() - _start; |
| 91 | } |
| 92 | return 0; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Returns if the timer has been started. |
no test coverage detected