\Horde_View_Helper_Benchmark_Timer

An instance of this class is returned by Horde_View_Helper_Benchmark::benchmark().

Summary

Methods
Properties
Constants
__construct()
end()
No public properties found
No constants found
No protected methods found
$_start
$_logger
$_message
$_level
N/A
No private methods found
No private properties found
N/A

Properties

$_start

$_start : float

(Micro-)time that the benchmark was started.

Type

float

$_logger

$_logger : \Horde_Log_Logger

Logger instance that will be used to record the time after the benchmark has ended.

Type

\Horde_Log_Logger

$_message

$_message : string

Message to log after the benchmark has ended

Type

string

$_level

$_level : string|integer

Log level to log after the benchmark has ended.

Type

string|integer

Methods

__construct()

__construct(string  $message, string|integer  $level = 'info', \Horde_Log_Logger  $logger = null) 

Starts a new benchmark.

Parameters

string $message

Message to log after the benchmark has ended.

string|integer $level

Log level to log after the benchmark has ended.

\Horde_Log_Logger $logger

Logger instance.

end()

end() 

Ends the benchmark and log the result.