includes/dbal.php
changeset 299 ce2873735506
parent 293 3f98d4ba1e33
child 304 e2cb5f1432c8
child 311 a007145a0ff6
equal deleted inserted replaced
298:39c132e69781 299:ce2873735506
   771                 <td class="row2">Called from:</td>
   771                 <td class="row2">Called from:</td>
   772                 <td class="row1">' . $this->query_sources[$query] . '</td>
   772                 <td class="row1">' . $this->query_sources[$query] . '</td>
   773               </tr>';
   773               </tr>';
   774       }
   774       }
   775     }
   775     }
       
   776     if ( function_exists('array_sum') )
       
   777     {
       
   778       $query_time_total = array_sum($this->query_times);
       
   779       echo '<tr>
       
   780               <th class="subhead" colspan="2">
       
   781                 Total time taken for SQL queries: ' . round( $query_time_total, 6 ) . ' seconds
       
   782               </th>
       
   783             </tr>';
       
   784     }
   776     echo '  </table>
   785     echo '  </table>
   777           </div>';
   786           </div>';
   778     $template->footer();
   787     $template->footer();
   779   }
   788   }
   780 }
   789 }