72 + (1.0f - smoothingConstant_) * avg_;
87 avg_ = max_ = min_ =
NAN;
92 float ticksPerBlockInv_;
97 float smoothingConstant_;
Definition CpuLoadMeter.h:19
float GetAvgCpuLoad() const
Definition CpuLoadMeter.h:77
void Reset()
Definition CpuLoadMeter.h:84
void Init(float sampleRateInHz, int blockSizeInSamples, float smoothingFilterCutoffHz=1.0f)
Definition CpuLoadMeter.h:29
CpuLoadMeter()
Definition CpuLoadMeter.h:21
float GetMaxCpuLoad() const
Definition CpuLoadMeter.h:81
void OnBlockStart()
Definition CpuLoadMeter.h:49
void OnBlockEnd()
Definition CpuLoadMeter.h:52
float GetMinCpuLoad() const
Definition CpuLoadMeter.h:79
Definition leddriver.h:33
static uint32_t GetTick()
static uint32_t GetTickFreq()
Hardware defines and helpers for daisy field platform.
Definition index.h:2