> hi to all,
> how can I set up a timer that will tell me how long a query takes to run.
> for example, if I run the following query, I would like to know how long
> Thanks in advanced
I don't remember where I 've found this snippet, but it works well.
$TIMER_START = explode(" ", microtime());
$TIMER_START = $TIMER_START + $TIMER_START;
## Do some stuff here:
$TIMER_END = explode(" ", microtime());
$TIMER_END = $TIMER_END + $TIMER_END;
echo "<br>", $TIMER_END - $TIMER_START, " secs";
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php