Skip to content

Commit 47e7457

Browse files
committed
The timer generates negative value error has been fixed.
1 parent 7723ced commit 47e7457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PerformanceMeter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static function elapsedTime(string $startPoint, ?string $endPoint = null,
6262
{
6363
$start = self::getPointer($startPoint);
6464
$end = self::getPointer($endPoint);
65-
return round(($start['time'] - $end['time']), $decimal);
65+
return round(($end['time'] - $start['time']), $decimal);
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)