The Counter class contains two counters to count input and output.
More...
#include <Sensors.hpp>
|
void | increaseInputCounter () |
| Increase the input counter by one.
|
|
void | increaseOutputCounter () |
| Increase the output counter by one.
|
|
int | inputCounts (bool reset=true) |
| Get the number of input counts registered.
|
|
int | outputCounts (bool reset=true) |
| Get the number of output counts registered.
|
|
|
std::pair< int, int > | m_counters = {0, 0} |
|
The Counter class contains two counters to count input and output.
◆ inputCounts()
int dsm::Counter::inputCounts |
( |
bool | reset = true | ) |
|
Get the number of input counts registered.
- Parameters
-
reset | If true, the counter is reset to 0. Default is true |
◆ outputCounts()
int dsm::Counter::outputCounts |
( |
bool | reset = true | ) |
|
Get the number of output counts registered.
- Parameters
-
reset | If true, the counter is reset to 0. Default is true |
The documentation for this class was generated from the following file: