[PHP] MySQL query time

2002-06-26 Thread Bharath Bhushan lohray

Is there a way to find the time that mySQL took to perform a query.
like the one shown when you perform it on the console mode(0.09 sec or
so)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mysql Query time

2002-06-26 Thread Bharath Bhushan lohray

Is there a way to find the time that mySQL took to perform a query.
like the one shown when you perform it on the console mode(0.09 sec or
so)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] MySQL query time

2002-06-26 Thread John Holmes

 Is there a way to find the time that mySQL took to perform a query.
 like the one shown when you perform it on the console mode(0.09
sec or
 so)

No. You can use microtime() to get the time before and after the query,
subtract smaller from larger, and that's your time. It's not the actual
time of the query, but it's the best you can get. 

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php