src/Debugger/Bar/TracePanel.php
public function timeClass($time, $slow = null, $fast = null)
    {
        $slow = $slow ?: 0.02;  // 20ms
        $fast = $fast ?: 1e-3;  //  1ms

        if ($time <= $fast) {
            return 'timeFast';
        }

        if ($time <= $slow) {
            return 'timeMedian';
        }

        return 'timeSlow';
    }
public function timeClass($time, $slow = null, $fast = null)
    {
        $slow = $slow ?: 0.02;  // 20ms
        $fast = $fast ?: 1e-3;  //  1ms

        if ($time <= $fast) {
            return 'timeFast';
        }

        if ($time <= $slow) {
            return 'timeMedian';
        }

        return 'timeSlow';
    }
public function timeClass ( $ time , $ slow = null , $ fast = null ) { $ slow = $ slow ? : 0.02 ; // 20ms $ fast = $ fast ? : 1e-3 ; //  1ms if ( $ time <= $ fast ) { return 'timeFast' ; } if ( $ time <= $ slow ) { return 'timeMedian' ; } return 'timeSlow' ; }
Template helper converts seconds to HTML class string.

@param  float $time time interval in seconds
@param  float $slow over this value is interval classified as slow
@param  float $fast under this value is interval classified as fast

@return string
Template helper converts seconds to HTML class string .