class StopwatchPeriod

Represents an Period for an Event.

Methods

__construct(int|float $start, int|float $end, bool $morePrecision = false)

No description

int|float
getStartTime()

Gets the relative time of the start of the period.

int|float
getEndTime()

Gets the relative time of the end of the period.

int|float
getDuration()

Gets the time spent in this period.

int
getMemory()

Gets the memory usage.

Details

at line line 30
__construct(int|float $start, int|float $end, bool $morePrecision = false)

Parameters

int|float $start The relative time of the start of the period (in milliseconds)
int|float $end The relative time of the end of the period (in milliseconds)
bool $morePrecision If true, time is stored as float to keep the original microsecond precision

at line line 42
int|float getStartTime()

Gets the relative time of the start of the period.

Return Value

int|float The time (in milliseconds)

at line line 52
int|float getEndTime()

Gets the relative time of the end of the period.

Return Value

int|float The time (in milliseconds)

at line line 62
int|float getDuration()

Gets the time spent in this period.

Return Value

int|float The period duration (in milliseconds)

at line line 72
int getMemory()

Gets the memory usage.

Return Value

int The memory usage (in bytes)