diff --git a/src/DebugBar/DataFormatter/DataFormatter.php b/src/DebugBar/DataFormatter/DataFormatter.php index 7ffb1989..d3043e81 100644 --- a/src/DebugBar/DataFormatter/DataFormatter.php +++ b/src/DebugBar/DataFormatter/DataFormatter.php @@ -54,8 +54,10 @@ public function formatDuration($seconds) { if ($seconds < 0.001) { return round($seconds * 1000000) . 'μs'; - } elseif ($seconds < 1) { + } elseif ($seconds < 0.1) { return round($seconds * 1000, 2) . 'ms'; + } elseif ($seconds < 1) { + return round($seconds * 1000) . 'ms'; } return round($seconds, 2) . 's'; }