TimingsHandler
in package
Table of Contents
- $enabled : bool
- $name : string
- $parent : TimingsHandler|null
- $record : TimingsRecord|null
- $timingDepth : int
- $timingStart : int
- __construct() : mixed
- getName() : string
- getStartTime() : float
- isEnabled() : bool
- printTimings() : array<string|int, string>
- reload() : void
- setEnabled() : void
- startTiming() : void
- stopTiming() : void
- tick() : void
- time() : mixed
- internalStartTiming() : void
- internalStopTiming() : void
Properties
$enabled
private
static bool
$enabled
= false
$name
private
string
$name
$parent
private
TimingsHandler|null
$parent
= null
$record
private
TimingsRecord|null
$record
= null
$timingDepth
private
int
$timingDepth
= 0
$timingStart
private
static int
$timingStart
= 0
Methods
__construct()
public
__construct(string $name[, TimingsHandler|null $parent = null ]) : mixed
Parameters
- $name : string
- $parent : TimingsHandler|null = null
Return values
mixed —getName()
public
getName() : string
Return values
string —getStartTime()
public
static getStartTime() : float
Return values
float —isEnabled()
public
static isEnabled() : bool
Return values
bool —printTimings()
public
static printTimings() : array<string|int, string>
Return values
array<string|int, string> —reload()
public
static reload() : void
Return values
void —setEnabled()
public
static setEnabled([bool $enable = true ]) : void
Parameters
- $enable : bool = true
Return values
void —startTiming()
public
startTiming() : void
Return values
void —stopTiming()
public
stopTiming() : void
Return values
void —tick()
public
static tick([bool $measure = true ]) : void
Parameters
- $measure : bool = true
Return values
void —time()
public
time(Closure $closure) : mixed
Parameters
- $closure : Closure
Tags
Return values
mixed —the result of the given closure
internalStartTiming()
private
internalStartTiming(int $now) : void
Parameters
- $now : int
Return values
void —internalStopTiming()
private
internalStopTiming(int $now) : void
Parameters
- $now : int