qxandxt

导航

php 查看接口运行时间

<?php
$start_time = microtime(true);
for ($i=0;$i<100000000;$i++){};
$end_time = microtime(true);
echo '循环执行时间为:'.($end_time-$start_time).' s';

  

posted on 2019-09-05 14:58  qxandxt  阅读(884)  评论(0)    收藏  举报