elapsed time fix