1
0
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:
Barry vd. Heuvel 2013-10-02 10:54:40 +02:00
parent 9e9ca24a62
commit 8915596404

View File

@ -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';
}