Fixed overflow of elapsed time.