2009-08-11 69 views

回答

1

查询之前,您应该使用

$start = microtime(true); 
//then your query 

$end = microtime(true); 
$duration=$end-$start; 
echo $duration; 

可能是其能正常工作。

1

记录操作前的时间,执行操作并记录操作后的时间。