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