#include <rate_counter.hpp>
|
| rate_counter (unsigned rate) |
|
bool | poll () |
| Increments the counter by one and checks whether it is now a multiple of the chosen rate. 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 |
Increments the counter by one and checks whether it is now a multiple of the chosen rate.
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: