timer)) { $this->timer = new TimeKeeper(); } $this->timer->start(); } protected function stopTimer() { if (!isset($this->timer)) { return; } $this->timer->stop(); } /** * @return float|null */ protected function getExecutionTime() { if (!isset($this->timer)) { return null; } return $this->timer->elapsed(); } }