src/Duration.php
public function format(): string
    {
        foreach ($this->times as $unit => $value) {
            if ($this->time >= $value) {
                $time = floor($this->time / $value * 100) / 100;
                return "{$time} {$unit}";
            }
        }

        return round($this->time * 1000) . " ms";
    }
public function format(): string
    {
        foreach ($this->times as $unit => $value) {
            if ($this->time >= $value) {
                $time = floor($this->time / $value * 100) / 100;
                return "{$time} {$unit}";
            }
        }

        return round($this->time * 1000) . " ms";
    }
Formats the elapsed time as a string.

@return string