Added correct page render time in the default layout.

Added a function elapsedTime() that can be called anywhere to see how long the page has taken to render thus far.
query debugging shows current render time to help detect performance issues.
This commit is contained in:
Znote
2015-05-21 19:22:58 +02:00
parent 2a38590b96
commit 3036d61926
3 changed files with 13 additions and 9 deletions

View File

@@ -4,12 +4,7 @@
<footer>
<p>&copy; <?php echo $config['site_title'];?>.
<?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$total_time = round(($finish - $start), 4);
echo 'Server date and clock is: '. getClock(false, true) .' Page generated in '. $total_time .' seconds. Q: '.$aacQueries;
echo 'Server date and clock is: '. getClock(false, true) .' Page generated in '. elapsedTime() .' seconds. Q: '.$aacQueries;
?>
<a href="http://www.css3templates.co.uk">Design: css3templates.co.uk</a>. Engine: <a href="credits.php">Znote AAC</a></p>
</footer>