phool4fool
203.***.***.***Page Generation
This simple code will get the microtime (The server's time) and round it to 3 digits. This can obviously be changed, but both values need to be the same. It will then subtract the two times, leaving you with the time it took to generate the page! Remember to place the first part at the start of your document (Preferably before anything but the opening PHP tag) and the final part just above the closing PHP tag ;)PHP Example: (!)
PHP code:
0// Insert at the start of your document
1$time = round(microtime(), 3);
2
3// Insert at the end of your document
4$time2 = round(microtime(), 3);
5
6$generation = $time2 - $time;
7
8echo "This page took $generation seconds to render";