MySQL Forums
Forum List  »  Newbie

Re: Is there any mysql function to display query processing time?
Posted by: Umesh Shastry
Date: May 18, 2005 05:18AM

Hi!!


If you are using PHP then go for this..

http://www.webclass.ru/tut.php?tut=218

I don't think there will be some built in function to track query processing time in mysql..


But you can try something like this..(I just tried this donno its good or not..lets wait for some one to post comment on your question..)

SELECT @start := UNIX_TIMESTAMP( now( ) ) ;

SELECT *
FROM `user_file_detail ` ;

SELECT @start AS STARTING_TIME, @end := UNIX_TIMESTAMP( now( ) ) AS END_TIME, SEC_TO_TIME( UNIX_TIMESTAMP( now( ) ) - @start ) AS TIME_TAKEN;

Regards,
Umesh Shastry
http://www.blogger.com/profile/02551756983528645221

Options: ReplyQuote


Subject
Written By
Posted
Re: Is there any mysql function to display query processing time?
May 18, 2005 05:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.