fix calculation of elapsed time