title: How do I test the speed of a mySQL query?
body: <p>I have a select and query like below...</p>
  
  <pre><code>    $sql = "SELECT * 
          FROM notifications 
          WHERE to_id='".$userid."' 
              AND (alert_read != '1' OR user_read != '1') 
          ORDER BY alert_time DESC";
      $result = mysql_query($sql);
  </code></pre>
  
  <p>how do I test how long the query took to run?</p>