It appears you have not yet registered with our community. To register please click here...

 
Go Back [M] > Hardware Madness > Hardware/Software Problems, Bugs
parse time parse time
FAQ Members List Calendar Search Today's Posts Mark Forums Read


parse time
Closed Thread
 
Thread Tools
Old 11th January 2003, 17:00   #1
Member
 
Join Date: May 2002
Posts: 1,202
BlackRabbit Freshly Registered
Default parse time

hellow

Hoe noemt de functie in PHP die de parsetime van een paginateruggeeft?

(zoals op de prijswatch, staat er ook "parsetime:...secs")

Tnx
BlackRabbit is offline  
Old 11th January 2003, 19:15   #2
Madshrimp
 
jmke's Avatar
 
Join Date: May 2002
Location: 7090/Belgium
Posts: 79,021
jmke has disabled reputation
Default

at the end of the page

<?
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = round(($endtime - $starttime), 4);
print "Parsetime: $totaltime s »";
?>


also have to put something in the header , if I'm not mistaken, don't know what exactly
__________________
jmke is offline  
Old 11th January 2003, 20:02   #3
Member
 
Join Date: May 2002
Posts: 1,202
BlackRabbit Freshly Registered
Default

Parsetime: 1042315631.1495 s

der scheelt ergens iets denk ik :-)

(I think there's something wrong :-) )
BlackRabbit is offline  
Old 11th January 2003, 20:06   #4
Madshrimp
 
jmke's Avatar
 
Join Date: May 2002
Location: 7090/Belgium
Posts: 79,021
jmke has disabled reputation
Default

you have to put something at the top of the page.. trying to find what

google answers all questions:
http://www.sitemasters.be/index.php?...cripten&id=114



example:

http://www.madshrimps.be/?action=test


this piece at the top

$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;


this piece at the bottom

$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);

printf("<center><font size=-1>Parsetime: %f seconden.</font></center>
", $totaltime);
__________________
jmke is offline  
Old 11th January 2003, 20:17   #5
Madshrimp
 
jmke's Avatar
 
Join Date: May 2002
Location: 7090/Belgium
Posts: 79,021
jmke has disabled reputation
Default

found the answer ^^
__________________
jmke is offline  
Old 12th January 2003, 00:08   #6
Member
 
Join Date: May 2002
Posts: 1,202
BlackRabbit Freshly Registered
Default

thanks!
BlackRabbit is offline  
Old 12th January 2003, 00:16   #7
Madshrimp
 
jmke's Avatar
 
Join Date: May 2002
Location: 7090/Belgium
Posts: 79,021
jmke has disabled reputation
Default

you're welcome bro

where are you gonna put the code ?
__________________
jmke is offline  
Old 12th January 2003, 10:50   #8
Member
 
Join Date: May 2002
Posts: 1,202
BlackRabbit Freshly Registered
Default

Quote:
Originally posted by jmke
you're welcome bro

where are you gonna put the code ?
www.Actua-forums.tk
(main, viewthreads & viewreplies)

Found out that I need to work on database structure.. (parsetime of main page = 1,5 secs..)
=> Server always has to find the max(postdate/time+username) of a post of a thread in a forum... The more posts/threads, the slower the mainpage will become..

But I'm going to begin on v3.0 of my forum.. At this moment I'm finding the week points of the current version..
v3.0 is gonna kick *** :grin:

MOD: could you add the code to the mainpage of the forum to see what's the parsetime of this forum's mainpage?
BlackRabbit is offline  
Old 12th January 2003, 20:59   #9
Madshrimp
 
jmke's Avatar
 
Join Date: May 2002
Location: 7090/Belgium
Posts: 79,021
jmke has disabled reputation
Default

Quote:
Originally posted by BlackRabbit

MOD: could you add the code to the mainpage of the forum to see what's the parsetime of this forum's mainpage?
not really
vB mixed php code with alot of stylesheets and templates put in a mysqldatabase

not really worth the trouble, will only risk to break it
__________________
jmke is offline  
Old 12th January 2003, 21:08   #10
Member
 
Join Date: May 2002
Posts: 1,202
BlackRabbit Freshly Registered
Default

Quote:
Originally posted by jmke


not really
vB mixed php code with alot of stylesheets and templates put in a mysqldatabase

not really worth the trouble, will only risk to break it
k no problem
BlackRabbit is offline  
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shooting yourself in the foot: Time Warner's usage caps jmke WebNews 6 27th January 2008 02:03
LCD Panels with Response Time Compensation Sidney WebNews 0 21st December 2005 12:44
chkdsk runs every time after boot. kristos Hardware/Software Problems, Bugs 7 24th February 2005 12:00
Speed Up Firefox Loading Page Time and Startup Time jmke WebNews 9 4th January 2005 23:10
ABIT Fatal1ty Time Trials™ @ CPL Winter 2004 Championships jmke WebNews 1 10th December 2004 23:21
BenQ Intends to Start Production of TFT Panels with 8ms Response Time jmke WebNews 0 5th September 2004 23:58
Saving 1Gb of HD space + faster boot time + faster app loading @ IANAG jmke WebNews 0 27th May 2004 21:04
Philips launches 12ms response time 19-inch LCD monitor jmke WebNews 0 25th May 2004 13:11
Sharp LL-191A-B: 16ms Response Time for 19" LCDs @ Anandtech jmke WebNews 0 18th May 2004 14:23

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 21:04.


Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO