public function measureTime(string $timerId, string $timerTitle, callable $callback)
    {
        $debugger = $this['debugger'];
        $debugger->startTimer($timerId, $timerTitle);
        $result = $callback();
        $debugger->stopTimer($timerId);

        return $result;
    }
public function measureTime(string $timerId, string $timerTitle, callable $callback)
    {
        $debugger = $this['debugger'];
        $debugger->startTimer($timerId, $timerTitle);
        $result = $callback();
        $debugger->stopTimer($timerId);

        return $result;
    }
public function measureTime ( string $ timerId , string $ timerTitle , callable $ callback ) { $ debugger = $ this [ 'debugger' ] ; $ debugger -> startTimer ( $ timerId , $ timerTitle ) ; $ result = $ callback ( ) ; $ debugger -> stopTimer ( $ timerId ) ; return $ result ; }
Measure how long it takes to do an action.

@param string $timerId
@param string $timerTitle
@param callable $callback
@return mixed   Returns value returned by the callable.
Measure how long it takes to do an action .