Is it possible to get "how much time does the PHP script cost to run"?
Sorry for my english!
Needs help!
Moderator: General Moderators
This should do the trick, just insert your script where indicated.
Code: Select all
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
//your code here
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Did nothing in $time seconds";