\app\framework\Component\StopwatchStopwatchPeriod

Represents an Period for an Event.

Summary

Methods
Properties
Constants
__construct()
getDuration()
getEndTime()
getMemory()
getStartTime()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$start
$end
$memory
N/A

Properties

$start

$start : 

Type

$end

$end : 

Type

$memory

$memory : 

Type

Methods

__construct()

__construct(integer  $start, integer  $end) 

Constructor.

Parameters

integer $start

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

integer $end

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

getDuration()

getDuration() : integer

Gets the time spent in this period.

Returns

integer —

The period duration (in milliseconds)

getEndTime()

getEndTime() : integer

Gets the relative time of the end of the period.

Returns

integer —

The time (in milliseconds)

getMemory()

getMemory() : integer

Gets the memory usage.

Returns

integer —

The memory usage (in bytes)

getStartTime()

getStartTime() : integer

Gets the relative time of the start of the period.

Returns

integer —

The time (in milliseconds)