full source of loading time [ line 1 - 18 ] | download loading time
| 1 | <? |
| 2 | function get_microtime() |
| 3 | { |
| 4 | list($usec, $sec) = explode(" ",microtime()); |
| 5 | return ((float)$usec + (float)$sec); |
| 6 | } |
| 7 | $time_start = get_microtime(); |
| 8 | // start page content |
| 9 | // this is dummy - content |
| 10 | for ($i=0; $i <1000; $i++) |
| 11 | { |
| 12 | } |
| 13 | // end page content |
| 14 | $time_end = get_microtime(); |
| 15 | $time = $time_end - $time_start; |
| 16 | $time = round($time,6); |
| 17 | echo "This page loaded in $time seconds."; |
| 18 | ?> |
28 hits by 14 users in the last 30 minutes.