fm.liveswitch.diagnostics.Timer Class Referenceabstract

The base class for the diagnostic timers. More...

Public Member Functions

void destroy ()
 Destroys this timer and its data. More...
 
abstract boolean getHasData ()
 Gets if this Timer has data or not. More...
 
abstract String getStats ()
 Gets a string containing the stats from this timer. More...
 
String getTag ()
 Gets the tag for this diagnostic timer. More...
 

Protected Member Functions

fm.liveswitch.ManagedStopwatch getWatch ()
 Gets the stop watch used in this timer. More...
 

Detailed Description

The base class for the diagnostic timers.

Member Function Documentation

◆ destroy()

void fm.liveswitch.diagnostics.Timer.destroy ( )

Destroys this timer and its data.

◆ getHasData()

abstract boolean fm.liveswitch.diagnostics.Timer.getHasData ( )
abstract

Gets if this Timer has data or not.

Reimplemented in fm.liveswitch.diagnostics.RateTimer, and fm.liveswitch.diagnostics.DurationTimer.

◆ getStats()

abstract String fm.liveswitch.diagnostics.Timer.getStats ( )
abstract

Gets a string containing the stats from this timer.

Reimplemented in fm.liveswitch.diagnostics.RateTimer, and fm.liveswitch.diagnostics.DurationTimer.

◆ getTag()

String fm.liveswitch.diagnostics.Timer.getTag ( )

Gets the tag for this diagnostic timer.

◆ getWatch()

fm.liveswitch.ManagedStopwatch fm.liveswitch.diagnostics.Timer.getWatch ( )
protected

Gets the stop watch used in this timer.