PHP Periksa berapa lama fungsi yang dibutuhkan

$start = microtime(true);
while (...) {

}
$time_elapsed_secs = microtime(true) - $start;
Fragile Fish