includes/dbal.php
changeset 236 3f98d4ba1e33
parent 232 2b60c89dc27f
child 252 a007145a0ff6
equal deleted inserted replaced
235:b3cfaf0a505c 236:3f98d4ba1e33
   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 }