title: Find MySql query run time?
body: <p>Is there a simple way to find and display how long the last MySQL query took to execute? I'm thinking of a system function or similar in PHP. The best I've come up with so far is making two variables with microtime, where one is before the query and another after. Where the last one is substracted to the first one ($querytime = $after - $before).</p>
  
  <p>The end result is meant to display what you find in PhpMyAdmin and similiar, i.e "Your query completed in xxxx.xx seconds".</p>