includes/dbal.php
changeset 293 3f98d4ba1e33
parent 289 2b60c89dc27f
child 304 e2cb5f1432c8
child 311 a007145a0ff6
--- a/includes/dbal.php	Sun Nov 25 17:53:03 2007 -0500
+++ b/includes/dbal.php	Sun Nov 25 19:03:50 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();