made the elapsed time more accurate