FMLiveSwitchDiagnosticsDurationTimer Class Reference

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

Instance Methods

(FMLiveSwitchDiagnosticsDurationSample *) - beginSample
 Adds beginning timestamp to the sample queue. More...
 
(bool) - endSample:
 Adds an end timestamp to the sample queue. More...
 
(NSString *) - getStats
 Processes samples and calculates instant while keeping track of the total the min, max, and average. More...
 
(bool) - hasData
 Gets whether this timer has data or not. More...
 
- Instance Methods inherited from FMLiveSwitchDiagnosticsTimer
(void) - destroy
 Destroys this timer and its data. More...
 
(NSString *) - tag
 Gets the tag for this diagnostic timer. More...
 
(FMLiveSwitchManagedStopwatch *) - watch
 Gets the stop watch used in this timer. More...
 

Detailed Description

A duration timer for calculating how long a process takes.

Method Documentation

◆ beginSample

Adds beginning timestamp to the sample queue.

◆ endSample:

- (bool) endSample: (FMLiveSwitchDiagnosticsDurationSample *)  sample

Adds an end timestamp to the sample queue.

◆ getStats

- (NSString*) getStats

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

Implements FMLiveSwitchDiagnosticsTimer.

◆ hasData

- (bool) hasData

Gets whether this timer has data or not.

Implements FMLiveSwitchDiagnosticsTimer.