measure and output the total runtime