I am developing a query browser, working with some large database, and I need to know the time taken to complete the query.
I see the time when the request succeeds in PHPMYADMIN.
Profiling or Showing rows 0 - 29 (2,000 total, Query took 0.0145 sec)
Example: Profiling
SELECT * FROM `larger_table`; Status Time starting 0.000026 checking permissions 0.000006 Opening tables 0.000014 System lock 0.000010 init 0.000022 optimizing 0.000004 statistics 0.000007 preparing 0.000005 executing 0.000001 Sending data 0.014138 end 0.000004 query end 0.000002 closing tables 0.000005 freeing items 0.000091 logging slow query 0.000003 cleaning up 0.000002
In the query browser, I see the time it takes at the bottom of the browser window.
So, how can I get the execution time of a request when sending a request to execute.
ie When I give the following request:
SELECT * FROM `larger_table`;
The request should return its execution time.
I have to catch this in PHP and show it to users. When the user gives some request for execution in the browser.
Is there any way to find the query execution time.?
Please check the images on which I noted the estimated time. 

I found something. Note this.
Tomphp
source share