__construct()
getElapsedTime()
log()
logWithTimeElapsed()
resetTimer()
$logger
$timer
Debugger base class.
| category | phpDocumentor |
|---|---|
| package | Core |
| author | Mike van Riel |
| license | MIT |
| link | http://phpdoc.org |
getElapsedTime(string $name) : float
stringName of the used timer.
floatlog(string | array | object $message) : void
If anything other than a string is passed than the item is var_dumped and then stored.
stringarrayobjectItem to log.
logWithTimeElapsed(string $message, string $name) : void
The string which is sent to the debug logger looks like:
$message in {time} seconds.
Thus for readability is advised to write messages as the following examples:
stringText to prefix the default message with.
stringName of the timer to use.
resetTimer(string $name) : void
stringName of the used timer.
$timer : \float[]