src/Viserio/Component/Profiler/DataCollector/AbstractDataCollector.php
protected function formatDuration(float $seconds): string
    {
        if ($seconds < 0.001) {
            return \round($seconds * 1000000) . 'μs';
        }

        if ($seconds < 1) {
            return \round($seconds * 1000, 2) . 'ms';
        }

        return \round($seconds, 2) . 's';
    }
protected function formatDuration(float $seconds): string
    {
        if ($seconds < 0.001) {
            return \round($seconds * 1000000) . 'μs';
        }

        if ($seconds < 1) {
            return \round($seconds * 1000, 2) . 'ms';
        }

        return \round($seconds, 2) . 's';
    }
Add measurement to float time.

@param float $seconds

@return string

@codeCoverageIgnore