#include <rate_counter.hpp>
|
| | rate_counter (unsigned rate) |
| |
| bool | poll () |
| | Checks whether the counter is now a multiple of the chosen rate, then increments it by one. More...
|
| |
Definition at line 19 of file rate_counter.hpp.
◆ rate_counter()
| utils::rate_counter::rate_counter |
( |
unsigned |
rate | ) |
|
|
inlineexplicit |
◆ poll()
| bool utils::rate_counter::poll |
( |
| ) |
|
|
inline |
Checks whether the counter is now a multiple of the chosen rate, then increments it by one.
Definition at line 25 of file rate_counter.hpp.
References counter_, and rate_.
◆ counter_
| unsigned utils::rate_counter::counter_ = 0 |
|
private |
◆ rate_
| unsigned utils::rate_counter::rate_ = 1 |
|
private |
The documentation for this class was generated from the following file: