modify
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user