get(RequestInterface::class); $runTime = round(microtime(true) - $startTime, 6); echo sprintf('run %s use time %6f', $request->getUri()->__toString(), $runTime); echo PHP_EOL; } public function before(): void { // TODO: Implement before() method. $this->time = microtime(true); } /** * @throws Exception */ public function after(mixed $response): void { // TODO: Implement after() method. $this->print_runtime($this->time); } }