mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Remove precision for microseconds
Maybe a bit much for microseconds.
This commit is contained in:
parent
8915596404
commit
ebe4e87851
@ -53,7 +53,7 @@ abstract class DataCollector implements DataCollectorInterface
|
||||
public function formatDuration($seconds)
|
||||
{
|
||||
if($seconds < 0.001){
|
||||
return round($seconds * 1000000, 2) . 'μs';
|
||||
return round($seconds * 1000000) . 'μs';
|
||||
}elseif ($seconds < 1) {
|
||||
return round($seconds * 1000, 2) . 'ms';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user