User Options
Function - showrendertime (PHP-Fusion 7.01)
| << showcounter | showsubdate >> |
showrendertime - Show render time and database queries
|
|||||||
Descriptionshowrendertime ( [ boolean $queries] )
Function was first introduced in PHP-Fusion v7.01 to make it easier for designers and theme makers to implement the render time. While making the function there was also requested a way to show total number of database queries and it was implemented in this function too as an option. Parametersqueries Set this to true if you want the function to return the total number of queries current page used. Return ValuesFunction will return the render time of the current page and number of database queries if the $queries is set to true. Example#1 showrendertime() - no queries
Here we will echo just the rendering time for the page, look how the two codes return the same output. Output to Example#1Render time: 0.08 seconds
Render time: 0.08 seconds Example#2 showrendertime() - with queries
Here we will echo the rendering time with the total number of queries used. Output to Example#2Render time: 0.08 seconds - 26 Queries
Changelog
Related Functions
Was this helpful?
|
|||||||
| Back to all functions... |
Post Comment
Please Login to Post a Comment.


