homepage Welcome to WebmasterWorld Guest from 54.211.230.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Page Genration Duration
camilord

5+ Year Member



 
Msg#: 3575595 posted 10:26 am on Feb 15, 2008 (gmt 0)

how to make this? hehehehe.. newbie here...

Page Generation: 0.32 Seconds.

i'm confuse how to get those milliseconds and and etc... where will i base?

thanks for the answer of my newbie question.. :)

 

camilord

5+ Year Member



 
Msg#: 3575595 posted 10:38 am on Feb 15, 2008 (gmt 0)

got it.. hehehe sorry for the post..

beginning of the page..

<?php

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

?>

end of the page...

<?php

$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
printf('Page loaded in %.3f seconds.', $totaltime);

?>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved