#include <timer.hpp>
|
| void | start (ae::q20_12_t durationSeconds) |
| | Starts a timer.
|
| bool | isFinished () |
| | Checks if the timer expired.
|
| ae::q20_12_t | getDuration () |
| | Gets duration of the timer.
|
| ae::q20_12_t | getElapsed () |
| | Gets elapsed time since the timer was started.
|
| ae::q20_12_t | getProgress () |
| | Gets progress of how much of the time has passed.
|
Definition at line 15 of file timer.hpp.
◆ getDuration()
| ae::q20_12_t Timer::getDuration |
( |
| ) |
|
Gets duration of the timer.
- Returns
- Duration in seconds.
Definition at line 26 of file timer.cpp.
◆ getElapsed()
| ae::q20_12_t Timer::getElapsed |
( |
| ) |
|
Gets elapsed time since the timer was started.
- Returns
- Elapsed time in seconds.
Definition at line 32 of file timer.cpp.
◆ getProgress()
| ae::q20_12_t Timer::getProgress |
( |
| ) |
|
Gets progress of how much of the time has passed.
- Returns
- Progress percentage.
Definition at line 39 of file timer.cpp.
◆ isFinished()
| bool Timer::isFinished |
( |
| ) |
|
Checks if the timer expired.
- Returns
- Returns if the timer is finished.
Definition at line 17 of file timer.cpp.
◆ start()
| void Timer::start |
( |
ae::q20_12_t | durationSeconds | ) |
|
Starts a timer.
- Parameters
-
| durationSeconds | How long it takes until the Timer is finished in seconds. |
Definition at line 5 of file timer.cpp.
◆ durationFrames
| uint32_t Timer::durationFrames = 0 |
|
private |
◆ running
| bool Timer::running = false |
|
private |
◆ startFrame
| uint32_t Timer::startFrame = 0 |
|
private |
The documentation for this class was generated from the following files: