times[$title] = microtime(true); } public function stop(string $title): void { $start = $this->times[$title] ?? 0; $end = microtime(true); $diff = $end - $start; unset($this->times[$title]); Log::debug(sprintf('Timer "%s" took %f seconds', $title, $diff)); } }