original_docstring: 
          Update FPS value. calculate average every self.average_of frames and count frame
          
docstring: Update FPS value. calculate average every self.average_of frames and count frame
docstring_tokens: Update FPS value . calculate average every self . average_of frames and count frame
code: def update(self):
          '''
          Update FPS value. calculate average every self.average_of frames and count frame
          '''
          if self.number_frames % self.average_of == 0:
              if self.start != 0:
                  self.fps = self.average_of / (time.time() - self.start)
                  
              self.start = time.time()
          self.number_frames += 1
code_tokens: def update ( self ) : if self . number_frames % self . average_of == 0 : if self . start != 0 : self . fps = self . average_of / ( time . time ( ) - self . start ) self . start = time . time ( ) self . number_frames += 1
short_docstring: Update FPS value.
short_docstring_tokens: Update FPS value .
comment: '''
          Update FPS value. calculate average every self.average_of frames and count frame
          '''