Documentation

Timer extends StaticBase
in package

Execution timer class.

Can handle multiple timers

Table of Contents

$timers  : mixed
check()  : float
Check a timer, returns difference in seconds, or fractions thereof.
getInstance()  : self
Help find static instances loaded via services
mark()  : mixed
Mark a timer.

Properties

$timers

private static mixed $timers = []

Methods

check()

Check a timer, returns difference in seconds, or fractions thereof.

public static check(string $label) : float
Parameters
$label : string
Return values
float

getInstance()

Help find static instances loaded via services

public static getInstance() : self
Return values
self

mark()

Mark a timer.

public static mark(string $label) : mixed
Parameters
$label : string
Tags
throws
Exception

if label is set

Return values
mixed

Search results