Fixed the elapsed time