#include <rate.hpp>
|
| | Rate () |
| |
| void | delay (QFrequency ihz) override |
| | Delay the current task such that it runs at the given frequency.
|
| |
| void | delayUntil (QTime itime) override |
| | Delay the current task until itime has passed.
|
| |
| void | delayUntil (uint32_t ims) override |
| | Delay the current task until ims milliseconds have passed.
|
| |
| virtual | ~AbstractRate () |
| |
Definition at line 11 of file rate.hpp.
◆ Rate()
◆ delay()
| void okapi::Rate::delay |
( |
QFrequency |
ihz | ) |
|
|
overridevirtual |
Delay the current task such that it runs at the given frequency.
The first delay will run for 1000/(ihz). Subsequent delays will adjust according to the previous runtime of the task.
- Parameters
-
Implements okapi::AbstractRate.
◆ delayUntil() [1/2]
| void okapi::Rate::delayUntil |
( |
QTime |
itime | ) |
|
|
overridevirtual |
Delay the current task until itime has passed.
This method can be used by periodic tasks to ensure a consistent execution frequency.
- Parameters
-
Implements okapi::AbstractRate.
◆ delayUntil() [2/2]
| void okapi::Rate::delayUntil |
( |
uint32_t |
ims | ) |
|
|
overridevirtual |
Delay the current task until ims milliseconds have passed.
This method can be used by periodic tasks to ensure a consistent execution frequency.
- Parameters
-
Implements okapi::AbstractRate.
◆ lastTime
| std::uint32_t okapi::Rate::lastTime {0} |
|
protected |
The documentation for this class was generated from the following file: