<?php  
 //程序运行时间
 $starttime = explode(' ',microtime());
 echo microtime();

 

 /*········以下是代码区·········*/
 for($i=0;$i<1000000;$i++){
  $i;
 }
 /*········以上是代码区·········*/

 //程序运行时间
 $endtime = explode(' ',microtime());
 $thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
 $thistime = round($thistime,3);
 echo "本网页执行耗时:".$thistime." 秒。".time();
?>

相关文章:

  • 2021-12-15
  • 2021-12-15
  • 2021-05-23
  • 2021-09-05
  • 2021-07-08
  • 2021-07-19
  • 2021-10-29
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案