您好,欢迎访问一九零五行业门户网

获得页面执行时间

获得页面执行时间
begintime = $this->gettime();
    }
    public function end()
    {    
        $this->endtime = $this->gettime();
    }
    public function spent()
    {
        return round(($this->endtime - $this->begintime) * 1000, 1);
    }
}
$runtime = new runtime();
$runtime->begin();
for ($i=0; $i     echo $i;
}
$runtime->end();
echo '页面执行时间'.$runtime->spent().'毫秒';
?> 
ad:真正免费,域名+虚机+企业邮箱=0元
其它类似信息

推荐信息