Swoole\Controller::showTime PHP Method

showTime() protected method

显示运行时间和内存占用
protected showTime ( ) : string
return string
    protected function showTime()
    {
        $runtime = $this->swoole->runtime();
        // 显示运行时间
        $showTime = '执行时间: ' . $runtime['time'];
        // 显示内存占用
        $showTime .= ' | 内存占用:' . $runtime['memory'];
        return $showTime;
    }