<?php
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
?>
//你的sql
<?
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Did in $time seconds";//输出运行总时间
?>
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
?>
//你的sql
<?
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Did in $time seconds";//输出运行总时间
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货