Fixed elapsed time calculation.