PHP Class Horde_View_Helper_Benchmark_Timer, horde

Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_level string | integer Log level to log after the benchmark has ended.
$_logger Horde_Log_Logger Logger instance that will be used to record the time after the benchmark has ended.
$_message string Message to log after the benchmark has ended
$_start float (Micro-)time that the benchmark was started.

Méthodes publiques

Méthode Description
__construct ( string $message, string | integer $level = 'info', Horde_Log_Logger $logger = null ) Starts a new benchmark.
end ( ) Ends the benchmark and log the result.

Method Details

__construct() public méthode

Starts a new benchmark.
public __construct ( string $message, string | integer $level = 'info', Horde_Log_Logger $logger = null )
$message string Message to log after the benchmark has ended.
$level string | integer Log level to log after the benchmark has ended.
$logger Horde_Log_Logger Logger instance.

end() public méthode

Ends the benchmark and log the result.
public end ( )

Property Details

$_level protected_oe property

Log level to log after the benchmark has ended.
protected string|int $_level
Résultat string | integer

$_logger protected_oe property

Logger instance that will be used to record the time after the benchmark has ended.
protected Horde_Log_Logger $_logger
Résultat Horde_Log_Logger

$_message protected_oe property

Message to log after the benchmark has ended
protected string $_message
Résultat string

$_start protected_oe property

(Micro-)time that the benchmark was started.
protected float $_start
Résultat float