Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

showrendertime

Show render time and the number of database queries in the footer

showrendertime

Quote

showrendertime ( [ boolean $queries] )


Parameters
queries
Set this to true if you want the function to return the total number of queries current page used.

Return Values
Function will return the render time of the current page and number of database queries if the $queries is set to true.

No queries example
Code
<?php
// Without using the $queries parameter
echo showrendertime();
// Setting the $queries parameter to false
echo showrendertime(false);
?>

Here we will echo just the rendering time for the page, look how the two codes return the same output.

Output from the No queries example

Quote

Render time: 0.08 seconds
Render time: 0.08 seconds


With queries example
Code
<?php
// Setting the $queries parameter to true
echo showrendertime(true);
?>

Here we will echo the rendering time with the total number of queries used.

Output from the with queries example

Quote

Render time: 0.08 seconds - 26 Queries


Changelog
7.01.00 - Function added to PHPFusion