MediaWiki master
Wikimedia\Stats\Metrics\RunningTimer Class Reference

RunningTimer Implementation. More...

Public Member Functions

 __construct (float $startTime, TimingMetric $metric, array $initialLabels)
 
 setLabel (string $key, string $value)
 Handle for MetricInterface::setLabel.
 
 setLabels (array $labels)
 Handle for MetricInterface::setLabels.
 
 stop ()
 Stop the running timer.
 

Detailed Description

RunningTimer Implementation.

A class to help TimingMetrics handle instances of recursion.

Author
Cole White
Since
1.45

Definition at line 19 of file RunningTimer.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Stats\Metrics\RunningTimer::__construct ( float $startTime,
TimingMetric $metric,
array $initialLabels )

Definition at line 26 of file RunningTimer.php.

Member Function Documentation

◆ setLabel()

Wikimedia\Stats\Metrics\RunningTimer::setLabel ( string $key,
string $value )

Handle for MetricInterface::setLabel.

See also
MetricInterface::setLabel
Returns
self

Definition at line 38 of file RunningTimer.php.

◆ setLabels()

Wikimedia\Stats\Metrics\RunningTimer::setLabels ( array $labels)

Handle for MetricInterface::setLabels.

See also
MetricInterface::setLabels
Returns
self

Definition at line 49 of file RunningTimer.php.

◆ stop()

Wikimedia\Stats\Metrics\RunningTimer::stop ( )

Stop the running timer.

Definition at line 57 of file RunningTimer.php.


The documentation for this class was generated from the following file: