template<typename T>
Counter struct
Diagnostic that counts some quantity over time.
Base classes
- struct DiagnosticMeter
Constructors, destructors, conversion operators
- Counter() defaulted
- Default constructor available for ease of putting this type in a class. But, all valid ways to construction involve the factory methods in the
Diagnostic
base class for component.
Public functions
Function documentation
template<typename T>
void vt:: runtime:: component:: meter:: Counter<T>:: increment(] T val = 1)
Increment the counter.
Parameters | |
---|---|
val in | amount to increment |
template<typename T>
void vt:: runtime:: component:: meter:: Counter<T>:: decrement(] T val = 1)
Decrement the counter.
Parameters | |
---|---|
val in | amount to decrement |