PHP Load Time

php

The code



<?php
// Insert this block of code at the very top of your page:
$time = microtime();

$time = explode(" ", $time);

$time = $time[1] + $time[0];
$start = $time;
// Place this part at the very end of your page
$time = microtime();

$time = explode(" ", $time);

$time = $time[1] + $time[0];
$finish = $time;

$totaltime = ($finish - $start);

printf ("This page took %f seconds to load.", $totaltime);
?> 

— powered by php
— source : tenet

Advertisements

2 thoughts on “PHP Load Time

  1. Pingback: CliCk Me If U Can !! « Swasty

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s