SatCat5
satcat5::util::RunningMax Class Reference

Detailed Description

Running maximum with label tracking.

A simple class for tracking the record-holder for any unsigned integer (e.g., elapsed microseconds, buffer size, etc.).

Definition at line 389 of file utils.h.

#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.
 

The documentation for this class was generated from the following files: