Add cout flush for elapsed time.