Update to make the time taken correctly calculated as average per repetition time