Rundiz/Profiler/Profiler.php
public function getReadableTime($time) {
        $ret = $time;
        $formatter = 0;
        $formats = ['ms', 's', 'm'];
        if ($time >= 1000 && $time < 60000) {
            $formatter = 1;
            $ret = ($time / 1000);
        }
        if ($time >= 60000) {
            $formatter = 2;
            $ret = ($time / 1000) / 60;
        }
        $ret = number_format($ret, 3, '.', '') . ' ' . $formats[$formatter];
        unset($formats, $formatter);
        return $ret;
    }
public function getReadableTime($time) {
        $ret = $time;
        $formatter = 0;
        $formats = ['ms', 's', 'm'];
        if ($time >= 1000 && $time < 60000) {
            $formatter = 1;
            $ret = ($time / 1000);
        }
        if ($time >= 60000) {
            $formatter = 2;
            $ret = ($time / 1000) / 60;
        }
        $ret = number_format($ret, 3, '.', '') . ' ' . $formats[$formatter];
        unset($formats, $formatter);
        return $ret;
    }
get readable time.<br>
copy from php quick profiler

@param integer $time
@return string