Add Execute time?

cademan

Joined: 2010-04-09
Posts: 53
Posted: Thu, 2010-04-22 07:12

I think this would be done in a theme for best results but correct me if I am wrong.

I want to add the execution time to the footer of all the pages. Where would be a good place to insert my PHP code? I tried adding it to the main.php at the top of the page (To collect the start time but with no output) and at the bottom of the page just above the </body> tag but that made the javascripts not work on most of the pages.

Thank you for your help!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-04-22 13:38

I believe there is two places your code might need. If you are using php code. One to start the code and one to finish and display the time.
I would add the start code in main.php and the finish and display in the bottom of page.tpl close to the </body>
or is this pure JS? then in the theme pages then.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
cademan

Joined: 2010-04-09
Posts: 53
Posted: Thu, 2010-04-22 13:51

Code is in PHP. JS wouldn't be able to determine back end processing time to my understanding. I will give that a shot and let you know. Where is the page.tpl file? is that in the themes folder?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-04-22 22:25

theme.tpl
in the template direcotry.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team