Fixed bug in printing elapsed time