Template execution time
| From: | pt2002 | Date: | Mon, 12 May 2003 14:03:39 +0000 |
| Subject: | Template execution time | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9520@lists.php.net to get a copy of this message | ||
Hi
I need to show at the end of the page something like "This page took n
seconds to be generated" even if the template is cached.
I can do:
$ini = time();
$tpl = new Smarty();
if (!is_cached("test.tpl") {
$tpl->assign("var1", "xpto")
...
}
$tpl->display("test.tpl");
How can I show the execution time at end of the page?
TIA