update elapsed time