THANX-A-LOT!!
This works pretty good. And, with variable name modifications, I can use it for multiple querys in one script.
For anyone else has got the same prob like I had, here is a extension:
Code: Select all
<?php
function getmicrotime() {
list($usec, $sec) = explode(' ',microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
#Do your query here
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "It took<B>"; printf("%17.2f\n", $time); echo"</B> seconds to perform this query\n";
?>
With this, $time comes in the 0,02 fomat.
Greez to all, bluenote