$time_start = microtime(true);


$time_end = microtime(true);
$time = $time_end - $time_start;

echo $time ."秒";

これで、大丈夫ですよね?