PHP函数microtime()用法与说明

PHP函数microtime()返回当前 Unix 时间戳和微秒数。

头部加入
global $readtime;
$readtime = microtime();

底部加入
echo “页面响应时间:” . (microtime() – $readtime) . “秒”;