includes/dbal.php
changeset 236 3f98d4ba1e33
parent 232 2b60c89dc27f
child 252 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();