Home >php教程 >PHP源码 >一行代码统计当前页面的总执行时间(不够精确,但够用)

一行代码统计当前页面的总执行时间(不够精确,但够用)

PHP中文网
PHP中文网Original
2016-05-25 17:11:58979browse

误差:正负一秒

<?php
//这里是页面执行内容
echo microtime(TRUE) - $_SERVER[&#39;REQUEST_TIME&#39;];
?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn