quentin

quentin

Joined
Dec 01, 2008

Activity Stream

quentin commented on a Page, Page load speed  -  Dec 01, 2008

This could be further reduced to 4 lines of code.. :)

//Put this at the very top of your script:
$start_time=microtime(TRUE);

//Put this at the very bottom/end of your script:
$end_time=microtime(TRUE);
$exec=round($end_time-$start_time, 3);
echo "Page was generated in $exec seconds.";

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.