Documentation

TimeHandler extends AbstractHandler
in package

Debug time handler class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
1.3.0

Table of Contents

$name  : string
Name of time measurement
$start  : float
Start time
$stop  : float
Stop time
__construct()  : mixed
Constructor
getElapsed()  : string
Get elapsed time
getName()  : string
Get name
getStart()  : float
Get start value
getStop()  : float
Get stop value
hasStarted()  : bool
Determined if the timer has started
hasStopped()  : bool
Determined if the timer has stopped
prepare()  : array<string|int, mixed>
Prepare handler data for storage
prepareAsString()  : string
Prepare handler data as string
prepareHeaderAsString()  : string
Prepare header string
setName()  : AbstractHandler
Set name
start()  : self
Start timer
stop()  : self
Stop timer

Properties

Methods

__construct()

Constructor

public __construct([string $name = null ][, bool $start = true ]) : mixed

Instantiate a time handler object

Parameters
$name : string = null
$start : bool = true
Return values
mixed

getElapsed()

Get elapsed time

public getElapsed() : string
Return values
string

getName()

Get name

public getName() : string
Return values
string

getStart()

Get start value

public getStart() : float
Return values
float

getStop()

Get stop value

public getStop() : float
Return values
float

hasStarted()

Determined if the timer has started

public hasStarted() : bool
Return values
bool

hasStopped()

Determined if the timer has stopped

public hasStopped() : bool
Return values
bool

prepare()

Prepare handler data for storage

public prepare() : array<string|int, mixed>
Return values
array<string|int, mixed>

prepareAsString()

Prepare handler data as string

public prepareAsString() : string
Return values
string

prepareHeaderAsString()

Prepare header string

public prepareHeaderAsString() : string
Return values
string

start()

Start timer

public start() : self
Return values
self

stop()

Stop timer

public stop() : self
Return values
self

Search results