Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

problems about the building of a timer for a php script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
gianni
Smarty Rookie


Joined: 14 May 2003
Posts: 29
Location: Bari, Italy

PostPosted: Fri May 30, 2003 1:19 pm    Post subject: problems about the building of a timer for a php script Reply with quote

Hi all,
I'm writing some code to build a timer that shows me the secons spent to create my page. I put at the top of the PHP script some code to store the time and now I have to put other istructions at the bottom to calculate the elapsed time but I dont know where the end of my script is, because my last istruction is: $smarty->display("template.tpl");
If I put those istructions before "$smarty->display(..." I would neglect the time spent by smarty.
Any idea?

Thanks.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Justin
Smarty Regular


Joined: 07 May 2003
Posts: 38
Location: Vilnius, Lithuania

PostPosted: Fri May 30, 2003 1:44 pm    Post subject: Re: problems about the building of a timer for a php script Reply with quote

gianni wrote:
Hi all,
I'm writing some code to build a timer that shows me the secons spent to create my page. I put at the top of the PHP script some code to store the time and now I have to put other istructions at the bottom to calculate the elapsed time but I dont know where the end of my script is, because my last istruction is: $smarty->display("template.tpl");
If I put those istructions before "$smarty->display(..." I would neglect the time spent by smarty.
Any idea?

Thanks.

<?php
// benchmark start
...
...
...
$content = $smarty->fetch( "template.tpl" );
// bechmark end
echo $content;
?>
_________________
http://www.baubas.net
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP