$start = time(); ... time passes $stop = time(); $stop - $start = $seconds_elapsed; # bunch of seconds in a minute, minutes in an hour code ... #### #seconds_elapsed = $stop - $start;