Class: Timer
Source Location: /pnobjlib/debug.php
|
Simple timer class to measure code execution times.
|
|
|
Inherited Variables
Inherited Methods
Class Details
[line 187]
Simple timer class to measure code execution times.
You can take multiple snapshots by calling the snap() function. For multiple measurements with 1 Timer, some basic statistics are computed.
Class Variables
$name =
[line 189]
| Type: |
mixed |
$times =
[line 190]
| Type: |
mixed |
Class Methods
constructor Timer [line 198]
Timer Timer(
[name
$name = ''])
|
|
Constructor
Parameters:
method get_microtime [line 222]
return the current microtime
method reset [line 211]
void reset(
[name
$name = ''])
|
|
reset the timer
Parameters:
method snap [line 325]
void snap(
[
$doStats = false])
|
|
take a snapshot while continuing the timing run
Parameters:
method start [line 233]
method stop [line 242]
void stop(
[
$insertNewRecord = true])
|
|
stop the timer
Parameters:
method stop_multiple [line 275]
print the timer results for multiple measurement
method stop_single [line 257]
print the timer results for a single measurement