StopwatchPeriod
in package
Represents an Period for an Event.
Tags
Table of Contents
- $end : mixed
- $memory : mixed
- $start : mixed
- __construct() : mixed
- __toString() : string
- getDuration() : int|float
- Gets the time spent in this period in milliseconds.
- getEndTime() : int|float
- Gets the relative time of the end of the period in milliseconds.
- getMemory() : int
- Gets the memory usage in bytes.
- getStartTime() : int|float
- Gets the relative time of the start of the period in milliseconds.
Properties
$end
private
mixed
$end
$memory
private
mixed
$memory
$start
private
mixed
$start
Methods
__construct()
public
__construct(int|float $start, int|float $end[, bool $morePrecision = false ]) : mixed
Parameters
- $start : int|float
-
The relative time of the start of the period (in milliseconds)
- $end : int|float
-
The relative time of the end of the period (in milliseconds)
- $morePrecision : bool = false
-
If true, time is stored as float to keep the original microsecond precision
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getDuration()
Gets the time spent in this period in milliseconds.
public
getDuration() : int|float
Return values
int|float —getEndTime()
Gets the relative time of the end of the period in milliseconds.
public
getEndTime() : int|float
Return values
int|float —getMemory()
Gets the memory usage in bytes.
public
getMemory() : int
Return values
int —getStartTime()
Gets the relative time of the start of the period in milliseconds.
public
getStartTime() : int|float