fm.liveswitch.diagnostics.DurationSample Class Reference

A sample for the duration timer. More...

Public Member Functions

 DurationSample (long beginMillis)
 Creates a new instance of the fm.liveswitch.diagnostics.DurationSample class. More...
 
void end (long endMillis)
 Ends the sample. More...
 
long getBeginMillis ()
 Gets the stopwatch value in milliseconds when the sample started. More...
 
long getEndMillis ()
 Gets the stopwatch value in milliseconds when the sample stopped. More...
 

Detailed Description

A sample for the duration timer.

Constructor & Destructor Documentation

◆ DurationSample()

fm.liveswitch.diagnostics.DurationSample.DurationSample ( long  beginMillis)

Creates a new instance of the fm.liveswitch.diagnostics.DurationSample class.

Parameters
beginMillisThe stopwatch value in milliseconds when the sample started.

Member Function Documentation

◆ end()

void fm.liveswitch.diagnostics.DurationSample.end ( long  endMillis)

Ends the sample.

Parameters
endMillisThe stopwatch value in milliseconds when the sample stopped.

◆ getBeginMillis()

long fm.liveswitch.diagnostics.DurationSample.getBeginMillis ( )

Gets the stopwatch value in milliseconds when the sample started.

◆ getEndMillis()

long fm.liveswitch.diagnostics.DurationSample.getEndMillis ( )

Gets the stopwatch value in milliseconds when the sample stopped.