W3cubDocs

/Symfony 3.0

Symfony\Component\Stopwatch\StopwatchPeriod

class StopwatchPeriod

Represents an Period for an Event.

Methods

__construct(int $start, int $end)

Constructor.

int getStartTime()

Gets the relative time of the start of the period.

int getEndTime()

Gets the relative time of the end of the period.

int getDuration()

Gets the time spent in this period.

int getMemory()

Gets the memory usage.

Details

public __construct(int $start, int $end)

Constructor.

Parameters

int $start The relative time of the start of the period (in milliseconds)
int $end The relative time of the end of the period (in milliseconds)

public int getStartTime()

Gets the relative time of the start of the period.

Return Value

int The time (in milliseconds)

public int getEndTime()

Gets the relative time of the end of the period.

Return Value

int The time (in milliseconds)

public int getDuration()

Gets the time spent in this period.

Return Value

int The period duration (in milliseconds)

public int getMemory()

Gets the memory usage.

Return Value

int The memory usage (in bytes)

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Stopwatch/StopwatchPeriod.html