Class Symfony\Component\Stopwatch\StopwatchPeriod

InheritanceSymfony\Component\Stopwatch\StopwatchPeriod

Represents an Period for an Event.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. Symfony\Component\Stopwatch\StopwatchPeriod
getDuration() Gets the time spent in this period. Symfony\Component\Stopwatch\StopwatchPeriod
getEndTime() Gets the relative time of the end of the period. Symfony\Component\Stopwatch\StopwatchPeriod
getMemory() Gets the memory usage. Symfony\Component\Stopwatch\StopwatchPeriod
getStartTime() Gets the relative time of the start of the period. Symfony\Component\Stopwatch\StopwatchPeriod

Method Details

__construct() public method

Constructor.

public void __construct ( $start, $end )
$start int

The relative time of the start of the period (in milliseconds)

$end int

The relative time of the end of the period (in milliseconds)

getDuration() public method

Gets the time spent in this period.

public int getDuration ( )
return int

The period duration (in milliseconds)

getEndTime() public method

Gets the relative time of the end of the period.

public int getEndTime ( )
return int

The time (in milliseconds)

getMemory() public method

Gets the memory usage.

public int getMemory ( )
return int

The memory usage (in bytes)

getStartTime() public method

Gets the relative time of the start of the period.

public int getStartTime ( )
return int

The time (in milliseconds)