def update(self, value=<NUM_LIT:0>):
self._deltas.append(time.time())<EOL>self.value = value<EOL>self._percent = <NUM_LIT> * self.value / self.num<EOL>if self.bar:<EOL><INDENT>self._bars = self._bar_symbol*int(np.round(self._percent / <NUM_LIT> * self._barsize))<EOL><DEDENT>if (len(self._deltas) < <NUM_LIT:2>) or (self._deltas[-<NUM_LIT:1>] - self._deltas[-<NUM_LIT:2>]) > <NUM_LIT>:<EOL><INDENT>self._estimate_time()<EOL>self._draw()<EOL><DEDENT>if self.value == self.num:<EOL><INDENT>self.end()<EOL><DEDENT>
Update the value of the progress and update progress bar.

Parameters
-----------
value : integer
    The current iteration of the progress