Timing Joomla page loading

If you want to time how long it takes to generate every page on a Joomla site then you can simply add the following code to your template file.

Add at the top of the template:

<?php
$tstart = mosProfiler::getmicrotime();
?>

Add to the bottom of the template:

<?php
$tend = mosProfiler::getmicrotime();
$totaltime = ($tend - $tstart);
printf("Page was generated in %f seconds", $totaltime);
?>

2 Responses to “Timing Joomla page loading”

  1. Idetrorce Says:

    very interesting, but I don’t agree with you
    Idetrorce

  2. Blog Says:

    Blog

    Blog

Leave a Reply