Display the time in miliseconds that a certain page takes to be created. Useful for determining database load time.
1<?php 2// Insert this block of code at the very top of your page: 3$time_start = microtime(true); 4 5 6 7 8// Place this part at the very end of your page 9$totaltime = microtime(true) - $time_start;1011printf("This page took %f seconds to load.", $totaltime);