Fixed up implementation of elapsed time for output file