[UPHPU] Using php to get page load time

Wade Preston Shearer lists at wadeshearer.com
Tue Apr 8 15:36:59 MDT 2008


> Is it possible to use PHP to get the time, say in milliseconds, when  
> a page
> was loaded? And how would one accomplish that?

If you call microtime() at the bottom of your page, you will get the  
amount it time it took for it to execute. You can use number_format()  
to format it the way you want.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080408/cf1f0cfa/smime.bin


More information about the UPHPU mailing list