while ($looping) { # mark the time $t = time(); # do whatever you want here execute_my_periodic_operation_here(); # wait until the end of 60 seconds # but don't hammer the cpu .. the sleep keeps # from calling time() way too often while(time() < $t+60) { sleep(1); } }