|
SatCat5
|
Running maximum with label tracking.
A simple class for tracking the record-holder for any unsigned integer (e.g., elapsed microseconds, buffer size, etc.).
#include <utils.h>
Public Member Functions | |
| void | clear () |
| Reset recorded maximum to zero. | |
| void | update (const char *lbl, u32 value) |
| Update stats if new value exceeds previous record. | |
Public Attributes | |
| const char * | m_label |
| Human-readable label. | |
| u32 | m_maximum |
| Maximum observed value. | |