includes/dbal.php
changeset 299 ce2873735506
parent 293 3f98d4ba1e33
child 304 e2cb5f1432c8
child 311 a007145a0ff6
--- a/includes/dbal.php	Wed Nov 28 14:46:03 2007 -0500
+++ b/includes/dbal.php	Wed Nov 28 14:47:42 2007 -0500
@@ -773,6 +773,15 @@
               </tr>';
       }
     }
+    if ( function_exists('array_sum') )
+    {
+      $query_time_total = array_sum($this->query_times);
+      echo '<tr>
+              <th class="subhead" colspan="2">
+                Total time taken for SQL queries: ' . round( $query_time_total, 6 ) . ' seconds
+              </th>
+            </tr>';
+    }
     echo '  </table>
           </div>';
     $template->footer();