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
$count
private
int
$count
= 0
$curCount
private
int
$curCount
= 0
$curTickTotal
private
int
$curTickTotal
= 0
$handler
private
TimingsHandler
$handler
$records
private
static array<string|int, self>
$records
= []
Tags
$start
private
int
$start
= 0
$totalTime
private
int
$totalTime
= 0
$violations
private
int
$violations
= 0
Methods
__construct()
public
__construct(TimingsHandler $handler) : mixed
Parameters
- $handler : TimingsHandler
Return values
mixed —clearRecords()
public
static clearRecords() : void
Return values
void —getAll()
public
static getAll() : array<string|int, self>
Tags
Return values
array<string|int, self> —getCount()
public
getCount() : int
Return values
int —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