<?php $startTime = microtime(true); /*stuff is going on*/ echo "Elapsed time is: ". (microtime(true) - $startTime) ." seconds";