 |
 |
 |
 |
 |
| Author |
Message |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
page load time? |
|
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
last update: 07-22-08: 8:30 pm |
|
| Fri Jun 23, 2006 1:58 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Already built-in. Check the demo/example page.
|
|
| Fri Jun 23, 2006 9:52 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
I couldn't find it on the demo page but I did find this searching the web.
 |  | Page loaded in <?php $load = microtime();
print (number_format($load,2));
?> seconds. |
Seems to do job nice 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue Jan 01, 2008 7:14 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Check example/index.php.
Top of the page:
 |  | $pgt = new microTimer;
$pgt->start(); |
Bottom of the page:
 |  | if (!global_cache){
?>
Generated in <?=$pgt->stop(); ?> seconds. <br />
DB queries: <?=$sql->query_count(); ?><br />
<? } ?> |
|
|
| Wed Jan 02, 2008 7:59 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
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
last update: 07-22-08: 8:30 pm |
|
| Tue Jan 08, 2008 7:25 pm |
|
 |
|
|
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
|
|
 |
 |
 |
|