Returns all registered benchmark-results.
static
array
getAllBenchmarks
()
static
void
getCallCount
( $identifier)
Gets the elapsed time for the given benchmark.
static
float
getElapsedTime
(string $identifier)
-
string
$identifier: The benchmark name/identifier.
Returns the current time in seconds and milliseconds.
static
float
getmicrotime
()
static
void
printAllBenchmarks
([ $linebreak = "<br />"])
Resets the clock for the given benchmark.
static
void
reset
( $identifier)
Resets all clocks for all benchmarks.
static
void
resetAll
([ $retain_benchmarks = array()], array $retain_benachmarks)
-
array
$retain_benachmarks: Optional. Numeric array containing benchmark-identifiers that should NOT get resetted.
-
$retain_benchmarks
Starts the clock for the given benchmark.
static
void
start
( $identifier, [bool $temporary_benchmark = false], string $identifie)
-
string
$identifie: The benchmark name/identifier.
-
bool
$temporary_benchmark: If set to TRUE, the benchmark will not be returned by methods like getAllBenchmarks() and printAllBenchmarks()
-
$identifier
Stops the benchmark-clock for the given benchmark.
static
void
stop
(string $identifier)
-
string
$identifier: The benchmark name/identifier.