Work out the distance travelled every second, and keep a total of all those results.