### begin page ## this must be write on 1st line before do anything $_start_time=time(); ### your codes begin here....... ##and here ................. ##.... until your code ends ## on footer, when process is done we can calculate time with $_time_spend=time()-$_start_time; echo "This page needed $_time_spend second";