A helper class to make it easier to compute timing metrics.
More...
|
| end (string $name) |
| End this timing measurement, reporting it under the given name .
|
|
|
static | millis () |
| Return the current number of milliseconds since the epoch, as a float.
|
|
static | start (?object $metrics) |
| Start a timing measurement, logging it to the given $metrics object (which just needs to have a timing() method).
|
|
A helper class to make it easier to compute timing metrics.
◆ end()
Wikimedia\Parsoid\Utils\Timing::end |
( |
string | $name | ) |
|
End this timing measurement, reporting it under the given name
.
- Parameters
-
- Returns
- float Number of milliseconds reported
◆ millis()
static Wikimedia\Parsoid\Utils\Timing::millis |
( |
| ) |
|
|
static |
Return the current number of milliseconds since the epoch, as a float.
- Returns
- float
◆ start()
static Wikimedia\Parsoid\Utils\Timing::start |
( |
?object | $metrics | ) |
|
|
static |
Start a timing measurement, logging it to the given $metrics
object (which just needs to have a timing()
method).
- Parameters
-
- Returns
- Timing
The documentation for this class was generated from the following file: