class_docstr: Threaded Class to calculate average FPS based on time.perf_counter() python module
docstr: Calculates Frames Per Second and resets variables
code: def __timeit(self):
      """
      Calculates Frames Per Second and resets variables
      """
      # assign current time
      self.__t_elasped = time.perf_counter()
      # loop until termainated
      while not (self.__terminate):
          # calulate frames elasped per second
          if time.perf_counter() - self.__t_elasped > 1.0:
              # calculate FPS
              fps = self.__numFrames / (
                  time.perf_counter() - self.__t_elasped
              )
              # reset frames counter
              self.__numFrames = 0
              # append calulated FPS
              self.__fps.append(fps)
              # reset timer
              self.__t_elasped = time.perf_counter()
  
file_path: vidgear/vidgear/tests/utils/fps.py
imports: import time
  import numpy
  from threading import Thread
label_desc: Use image node_id 3 for calling the FPS obj's underlying member method code with example usage: obj.__timeit() without return types