AceButton  1.3.3
An adjustable, compact, event-driven button library for Arduino.
Public Member Functions | List of all members
ace_button::TimingStats Class Reference

Public Member Functions

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

Detailed Description

Definition at line 32 of file TimingStats.h.

Constructor & Destructor Documentation

◆ TimingStats()

ace_button::TimingStats::TimingStats ( )
inline

Constructor.

Default copy-constructor and assignment operator ok.

Definition at line 35 of file TimingStats.h.

Member Function Documentation

◆ getCount()

uint16_t ace_button::TimingStats::getCount ( ) const
inline

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

Definition at line 57 of file TimingStats.h.

◆ getCounter()

uint16_t ace_button::TimingStats::getCounter ( ) const
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 64 of file TimingStats.h.

◆ getExpDecayAvg()

uint16_t ace_button::TimingStats::getExpDecayAvg ( ) const
inline

An exponential decay average.

Definition at line 54 of file TimingStats.h.


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