We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2009a58 commit 40f3755Copy full SHA for 40f3755
src/DebugBar/DataFormatter/DataFormatter.php
@@ -54,8 +54,10 @@ public function formatDuration($seconds)
54
{
55
if ($seconds < 0.001) {
56
return round($seconds * 1000000) . 'μs';
57
- } elseif ($seconds < 1) {
+ } elseif ($seconds < 0.1) {
58
return round($seconds * 1000, 2) . 'ms';
59
+ } elseif ($seconds < 1) {
60
+ return round($seconds * 1000) . 'ms';
61
}
62
return round($seconds, 2) . 's';
63
0 commit comments