Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
page load time?

 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
page load time?
Author Message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post page load time? Reply with quote
how hard would it be to make something to show how long it took to load the pages.. like for the full story or search?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Fri Jun 23, 2006 1:58 am View user's profile Send private message Visit poster's website AIM Address
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Already built-in. Check the demo/example page.
Fri Jun 23, 2006 9:52 am View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
I couldn't find it on the demo page but I did find this searching the web.

Code:
Page loaded in&nbsp;<?php $load = microtime();
print (number_format($load,2));
?>&nbsp;seconds.


Seems to do job nice Smile

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue Jan 01, 2008 7:14 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Check example/index.php.

Top of the page:
Code:
$pgt = new microTimer;
$pgt->start();


Bottom of the page:
Code:
         if (!global_cache){
         ?>
         Generated in <?=$pgt->stop(); ?> seconds. <br />
         DB queries: <?=$sql->query_count(); ?><br />
         <? } ?>

Wed Jan 02, 2008 7:59 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
I would have never found that. Thanks so much. That's way more efficient and accurate. I don't trust the one I found cause you just plop it in the middle of your page.. so it probably stops counting there. This one counts beg to end.. or wherever you set it. Anyway, you knew all that.. thanks again.

http://www.scodal.com/cutenewsru-pageload.php

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue Jan 08, 2008 7:25 pm View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Suggestions All times are GMT + 1 Hour
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
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.