Documentation

StopwatchPeriod
in package

Represents an Period for an Event.

Tags
author

Fabien Potencier fabien@symfony.com

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

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

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
Return values
int|float

Search results