starttime = microtime(true); return true; } /** * @HandleAfter() */ public function onAfter() { Console::info("Using " . round((microtime(true) - $this->starttime) * 1000, 2) . " ms."); } /** * @HandleException(\Exception::class) * @param Exception $e * @throws Exception */ public function onException(Exception $e) { Console::error("Using " . round((microtime(true) - $this->starttime) * 1000, 2) . " ms but an Exception occurred."); throw $e; } }