[PHP]処理時間を計測する


<?php
$start = hrtime(true); // 計測開始時間
~
処理
~
$end = hrtime(true); 
echo '処理時間:'.($end - $start).'ナノ秒';


結果

処理時間:***ナノ秒