\Pop\Debug\HandlerTimeHandler

Debug time handler class

Summary

Methods
Properties
Constants
__construct()
setName()
getName()
prepare()
prepareHeaderAsString()
prepareAsString()
getStart()
hasStarted()
getStop()
hasStopped()
start()
stop()
getElapsed()
No public properties found
No constants found
No protected methods found
$name
$start
$stop
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Name of time measurement

Type

string

$start

$start : float

Start time

Type

float

$stop

$stop : float

Stop time

Type

float

Methods

__construct()

__construct(string  $name = null, boolean  $start = true) 

Constructor

Instantiate a time handler object

Parameters

string $name
boolean $start

getName()

getName() : string

Get name

Returns

string

prepare()

prepare() : array

Prepare handler data for storage

Returns

array

prepareHeaderAsString()

prepareHeaderAsString() : string

Prepare header string

Returns

string

prepareAsString()

prepareAsString() : string

Prepare handler data as string

Returns

string

getStart()

getStart() : float

Get start value

Returns

float

hasStarted()

hasStarted() : boolean

Determined if the timer has started

Returns

boolean

getStop()

getStop() : float

Get stop value

Returns

float

hasStopped()

hasStopped() : boolean

Determined if the timer has stopped

Returns

boolean

start()

start() : self

Start timer

Returns

self

stop()

stop() : self

Stop timer

Returns

self

getElapsed()

getElapsed() : string

Get elapsed time

Returns

string