My question based on Accurate way to measure execution times of php scripts
and question is what if i have a very long code which have a lot of die() or return or exit; functions
and i wan't to calculate script execution speed ( which can be different, depends on params .. )
any way to do it?
my suggestion is:
<?php
$time_start = microtime(true);
include("script_real_name.php");
$time_end=microtime(true);
$dif=$time_end-$time_start;
/* but question, is this script will work on case of DIE() or EXIT; function called on "script_real_name.php"?
how to make it workable.
and other question, will the included script work with $_POST, $_GET?
*/