measures the total execution time of the program