protected function writePerformance($time)
    {
        $ms = round($time * 1000);

        foreach (self::$performanceThresholds as $colour => $threshold) {
            if ($ms > $threshold) {
                break;
            }
        }

        $this->writeWithColor($colour, " ($ms ms)");
    }