Add elapsed time logging.