fm.liveswitch.diagnostics.Timers Class Referenceabstract

The management class for all diagnostic timers. More...

Static Public Member Functions

static fm.liveswitch.diagnostics.DurationTimer getDurationTimer (String tag)
 Gets a duration timer with a specific tag. More...
 
static fm.liveswitch.diagnostics.DurationTimer getDurationTimer (@SuppressWarnings("rawtypes") Class type)
 Gets a duration timer with a tag corresponding to a type name. More...
 
static boolean getEnabled ()
 Gets whether the timings diagnostics are enabled or not. More...
 
static int getOutputInterval ()
 Gets the output interval (in seconds) for diagnostic timings. More...
 
static fm.liveswitch.LogLevel getOutputLogLevel ()
 Gets the log level to use when outputting the timings. More...
 
static fm.liveswitch.diagnostics.RateTimer getRateTimer (String tag)
 Gets a rate timer with a specific tag. More...
 
static fm.liveswitch.diagnostics.RateTimer getRateTimer (@SuppressWarnings("rawtypes") Class type)
 Gets a rate timer with a tag corresponding to a type name. More...
 
static void setOutputInterval (int value)
 Sets the output interval (in seconds) for diagnostic timings. More...
 
static void setOutputLogLevel (fm.liveswitch.LogLevel value)
 Sets the log level to use when outputting the timings. More...
 

Detailed Description

The management class for all diagnostic timers.

Member Function Documentation

◆ getDurationTimer() [1/2]

static fm.liveswitch.diagnostics.DurationTimer fm.liveswitch.diagnostics.Timers.getDurationTimer ( @SuppressWarnings("rawtypes") Class  type)
static

Gets a duration timer with a tag corresponding to a type name.

Parameters
typeThe type.

◆ getDurationTimer() [2/2]

static fm.liveswitch.diagnostics.DurationTimer fm.liveswitch.diagnostics.Timers.getDurationTimer ( String  tag)
static

Gets a duration timer with a specific tag.

Parameters
tagThe tag.

◆ getEnabled()

static boolean fm.liveswitch.diagnostics.Timers.getEnabled ( )
static

Gets whether the timings diagnostics are enabled or not.

◆ getOutputInterval()

static int fm.liveswitch.diagnostics.Timers.getOutputInterval ( )
static

Gets the output interval (in seconds) for diagnostic timings.

Setting to 0 disables.

◆ getOutputLogLevel()

static fm.liveswitch.LogLevel fm.liveswitch.diagnostics.Timers.getOutputLogLevel ( )
static

Gets the log level to use when outputting the timings.

◆ getRateTimer() [1/2]

static fm.liveswitch.diagnostics.RateTimer fm.liveswitch.diagnostics.Timers.getRateTimer ( @SuppressWarnings("rawtypes") Class  type)
static

Gets a rate timer with a tag corresponding to a type name.

Parameters
typeThe type.

◆ getRateTimer() [2/2]

static fm.liveswitch.diagnostics.RateTimer fm.liveswitch.diagnostics.Timers.getRateTimer ( String  tag)
static

Gets a rate timer with a specific tag.

Parameters
tagThe tag.

◆ setOutputInterval()

static void fm.liveswitch.diagnostics.Timers.setOutputInterval ( int  value)
static

Sets the output interval (in seconds) for diagnostic timings.

Setting to 0 disables.

◆ setOutputLogLevel()

static void fm.liveswitch.diagnostics.Timers.setOutputLogLevel ( fm.liveswitch.LogLevel  value)
static

Sets the log level to use when outputting the timings.