时间戳microtime ();
时间戳microtime ();
$t1 = microtime(true);
$t2 = microtime(true);
echo (($t2-$t1)*1000).'ms';源文:http://kangzj.net/how-to-caculate-php-script-run-time/
$t1 = microtime(true);
$t2 = microtime(true);
echo (($t2-$t1)*1000).'ms';源文:http://kangzj.net/how-to-caculate-php-script-run-time/