AceSegment  0.2.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
Public Member Functions | List of all members
ace_segment::TimingStats Class Reference

Public Member Functions

 TimingStats ()
 Constructor. More...
 
void reset ()
 
uint16_t getMax ()
 
uint16_t getMin ()
 
uint16_t getAvg ()
 
uint16_t getExpDecayAvg ()
 An exponential decay average. More...
 
uint16_t getCount ()
 Number of times update() was called since last reset. More...
 
uint16_t getCounter ()
 Number of times update() was called from the beginning of time. More...
 
void update (uint16_t duration)
 

Detailed Description

Definition at line 33 of file TimingStats.h.

Constructor & Destructor Documentation

◆ TimingStats()

ace_segment::TimingStats::TimingStats ( )
inline

Constructor.

Default copy-constructor and assignment operator ok.

Definition at line 36 of file TimingStats.h.

Member Function Documentation

◆ getCount()

uint16_t ace_segment::TimingStats::getCount ( )
inline

Number of times update() was called since last reset.

Definition at line 58 of file TimingStats.h.

◆ getCounter()

uint16_t ace_segment::TimingStats::getCounter ( )
inline

Number of times update() was called from the beginning of time.

Never reset. This is useful to determining how many times update() was called since it was last checked from the client code.

Definition at line 65 of file TimingStats.h.

◆ getExpDecayAvg()

uint16_t ace_segment::TimingStats::getExpDecayAvg ( )
inline

An exponential decay average.

Definition at line 55 of file TimingStats.h.


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