This commit is contained in:
as2252258@163.com
2021-08-03 02:43:40 +08:00
parent 82b54a9069
commit 9cd7241196
+2 -2
View File
@@ -41,8 +41,8 @@ class LoggerAspect implements IAspect
*/ */
private function print_runtime($handler, $startTime) private function print_runtime($handler, $startTime)
{ {
$className = $handler::class; $className = $handler[0]::class;
$methodName = $handler; $methodName = $handler[1];
$runTime = round(microtime(true) - $startTime, 6); $runTime = round(microtime(true) - $startTime, 6);
echo sprintf('run %s::%s use time %6f', $className, $methodName, $runTime); echo sprintf('run %s::%s use time %6f', $className, $methodName, $runTime);