How much time running is my php process? Calculate this time. Very simple.
<?php
$start_time = microtime(true);
// code...
$end_time = microtime(true);
$process_time = $end_time - $start_time;
echo 'This code running is: ' . $process_time . ' sec.';
?>
<?php
$start_time = microtime(true);
// code...
$end_time = microtime(true);
$process_time = $end_time - $start_time;
echo 'This code running is: ' . $process_time . ' sec.';
?>
0 comments:
Post a Comment