microtime()
を使います。
$time_start = microtime(true);
// 処理を書く
$time_end = microtime(true);
$processing_time = $time_end - $time_start;
echo "処理時間は" . $processing_time . "秒でした。";
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
microtime()
を使います。
$time_start = microtime(true);
// 処理を書く
$time_end = microtime(true);
$processing_time = $time_end - $time_start;
echo "処理時間は" . $processing_time . "秒でした。";
Register as a new user and use Qiita more conveniently
Go to list of users who liked