string smarty_function_pagerendertime(
array $params, &$smarty, object $smarty, string $round)
|
|
Smarty function to get the site's page render time
available parameters:
- assign if set, the message will be assigned to this variable
- round if the, the time will be rounded to this number of decimal places
(optional: default 2)
Example <!--[pagerendertime]--> outputs 'Page created in 0.18122792243958 seconds.'
<!--[pagerendertime round=2]--> outputs 'Page created in 0.18 seconds.'
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
$smarty |
Reference to the Smarty object |
| string |
$round |
format to apply to the number (based on the round php function) |
| |
&$smarty |
|