more accurately determine the time of the loop