\Hazaar
Timer
Timer class

Used for timing things

Tags

Since

1.0.0

Summary
Methods Properties Constants
all
get
No constants
Properties
$precision
$precision
Timer Precision

This sets the precision of the output. By default it is 1000 which means output in milliseconds.

$timers
$timers
Array of timers
Methods
__construct()
__construct($precision = 2)
Start the timer

Parameters

$precision

No description

__tostring()
__tostring()
all()
all()
get()
get($name = 'default', $precision = null)

Parameters

$name

No description

$precision

No description

start()
start($name = 'default', $when = null)

Parameters

$name

No description

$when

No description

stop()
stop($name = 'default')

Parameters

$name

No description