computerman
Posts: 27
|
| Posted: 05/06/2010, 7:59 AM |
|
if anybody can tell exactly where to put, to make it work accurately.
or is there any special version made for CCS generated pages?
Quote :http://www.110mb.com/forum/tip-displaying-php-page-generation-time-t19030.0.html
_________________
"whoever is a cruel, must be an old downtrod who has got authority,
whoever is a downtrod, must be an old cruel who has lost authority. "
An Oriental Saying |
 |
 |
ckroon
Posts: 869
|
| Posted: 05/06/2010, 8:20 AM |
|
Make a new page
Call it Footer.
Mark Includable as YES
add an event in the Page Before Show
paste the code
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("Page generated in %f seconds.", $totaltime);
save it publish it. then place the Includable page FOOTER at the bottom of any page.
Not tested, but this is the main idea.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
ckroon
Posts: 869
|
| Posted: 05/06/2010, 8:21 AM |
|
sorry.. missed the header
Make a header includable page as well
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;
Header generates START time, footer gets your Finish time.. then it shows the difference.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
computerman
Posts: 27
|
| Posted: 05/06/2010, 8:37 AM |
|
thank you, It works!
_________________
"whoever is a cruel, must be an old downtrod who has got authority,
whoever is a downtrod, must be an old cruel who has lost authority. "
An Oriental Saying |
 |
 |
|