phool4fool
203.***.***.***Page Process Time
This is a simple script that outputs (text formatted) the amount of time that the page take to load a page.PHP Example: (!)
PHP code:
0// Get Current Time
1$mtime = microtime();
2// Split Seconds and Microseconds
3$mtime = explode (" ", $mtime);
4// Create a single value for start time
5$mtime = $mtime[1] + $mtime[0];
6// Write Start Time Into A Variable
7$tstart = $mtime;
8
9// Get current time (Like above) to get end time
10$mtime = microtime();
11$mtime = explode (" ", $mtime);
12$mtime = $mtime[1] + $mtime[0];
13// Store end time in a variable
14$tend = $mtime;
15// Calculate Difference
16$totaltime = ($tend - $tstart);
17// Output the result
18printf ("Page loaded in %f seconds!", $totaltime);