Added a correction to previous rewrite of get_times

Get_times' return value was not being monotonically increasing. This
was due to the fact that the distance between i and i+1 was being
appended, without adding the distance made so far.