fm.liveswitch.diagnostics.DurationTimer Class Reference

A duration timer for calculating how long a process takes. More...

Public Member Functions

fm.liveswitch.diagnostics.DurationSample beginSample ()
 Adds beginning timestamp to the sample queue. More...
 
boolean endSample (fm.liveswitch.diagnostics.DurationSample sample)
 Adds an end timestamp to the sample queue. More...
 
boolean getHasData ()
 Gets whether this timer has data or not. More...
 
String getStats ()
 Processes samples and calculates instant while keeping track of the total the min, max, and average. 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 duration timer for calculating how long a process takes.

Member Function Documentation

◆ beginSample()

fm.liveswitch.diagnostics.DurationSample fm.liveswitch.diagnostics.DurationTimer.beginSample ( )

Adds beginning timestamp to the sample queue.

◆ endSample()

boolean fm.liveswitch.diagnostics.DurationTimer.endSample ( fm.liveswitch.diagnostics.DurationSample  sample)

Adds an end timestamp to the sample queue.

◆ getHasData()

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

Gets whether this timer has data or not.

Reimplemented from fm.liveswitch.diagnostics.Timer.

◆ getStats()

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

Processes samples and calculates instant while keeping track of the total the min, max, and average.

Reimplemented from fm.liveswitch.diagnostics.Timer.