<?php // Insert this block of code at the very top of your page: $time_start = microtime(true); // Place this part at the very end of your page $totaltime = microtime(true) - $time_start; printf("This page took %f seconds to load.", $totaltime);