correct error when printing elapsed time