code: def refresh(self, flush=True, elapsed=None):
          
  
          if self.enabled:
              self.manager.write(output=self.format(elapsed=elapsed),
                                 flush=flush, position=self.position)
docs: Args:
              flush(bool): Flush stream after writing progress bar (Default:True)
              elapsed(float): Time since started. Automatically determined if :py:data:`None`
  
          Redraw progress bar