Documentation

TimingsRecord
in package

Represents a record collected by a timings handler.

This record will live until the end of the current timings session, even if its handler goes out of scope. This ensures that timings collected by destroyed timers are still shown in the final report.

Table of Contents

$count  : int
$curCount  : int
$curTickTotal  : int
$handler  : TimingsHandler
$records  : array<string|int, self>
$start  : int
$totalTime  : int
$violations  : int
__construct()  : mixed
clearRecords()  : void
getAll()  : array<string|int, self>
getCount()  : int
getCurCount()  : int
getCurTickTotal()  : float
getName()  : string
getStart()  : float
getTotalTime()  : float
getViolations()  : int
startTiming()  : void
stopTiming()  : void
tick()  : void

Properties

$records

private static array<string|int, self> $records = []
Tags
phpstan-var

array<int, self>

Methods

clearRecords()

public static clearRecords() : void
Return values
void —

getAll()

public static getAll() : array<string|int, self>
Tags
phpstan-return

array<int, self>

Return values
array<string|int, self> —

getCurCount()

public getCurCount() : int
Return values
int —

getCurTickTotal()

public getCurTickTotal() : float
Return values
float —

getName()

public getName() : string
Return values
string —

getStart()

public getStart() : float
Return values
float —

getTotalTime()

public getTotalTime() : float
Return values
float —

getViolations()

public getViolations() : int
Return values
int —

startTiming()

public startTiming(int $now) : void
Parameters
$now : int
Return values
void —

stopTiming()

public stopTiming(int $now) : void
Parameters
$now : int
Return values
void —

tick()

public static tick([bool $measure = true ]) : void
Parameters
$measure : bool = true
Return values
void —

Search results