To get it right out of MySQL you can use the general log.
If its not already on, turn it on:
SET GLOBAL general_log = 'ON';
To see the data after you've run your query:
SELECT * FROM mysql.general_log;
Among other things, you will get the query execution time, just like you've probably seen in phpmyadmin.