fm.liveswitch.diagnostics.RateTimer Class Reference

A rate timer for calculating the frequency of something. More...

Public Member Functions

void addTick ()
 Adds a sample. More...
 
boolean getHasData ()
 Gets whether this timer has data or not. More...
 
String getStats ()
 Gets the current stats for this timer. More...
 
- Public Member Functions inherited from fm.liveswitch.diagnostics.Timer
void destroy ()
 Destroys this timer and its data. More...
 
String getTag ()
 Gets the tag for this diagnostic timer. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fm.liveswitch.diagnostics.Timer
fm.liveswitch.ManagedStopwatch getWatch ()
 Gets the stop watch used in this timer. More...
 

Detailed Description

A rate timer for calculating the frequency of something.

Member Function Documentation

◆ addTick()

void fm.liveswitch.diagnostics.RateTimer.addTick ( )

Adds a sample.

◆ getHasData()

boolean fm.liveswitch.diagnostics.RateTimer.getHasData ( )

Gets whether this timer has data or not.

Reimplemented from fm.liveswitch.diagnostics.Timer.

◆ getStats()

String fm.liveswitch.diagnostics.RateTimer.getStats ( )

Gets the current stats for this timer.

Reimplemented from fm.liveswitch.diagnostics.Timer.