Sliding window data structure that can aggregate moving statistics. It's implmented using ring-buffer with size specified at compile time. More...
#include <sliding_counter.h>
Public Member Functions | |
void | Inc () |
void | IncBy (int32_t delta) |
T | SumTail () const |
T | Sum () const |
void | Reset () |
Additional Inherited Members | |
![]() | |
uint32_t | MoveTsIfNeeded (size_t size, int32_t *dest) const |
![]() | |
uint32_t | last_ts_ = 0 |
Sliding window data structure that can aggregate moving statistics. It's implmented using ring-buffer with size specified at compile time.
NUM |
Definition at line 46 of file sliding_counter.h.