code: def get_ips_average(self):
      if not self._total_samples or self._cnt == 0:
          return 0
      return float(self._total_samples) / self._total_time
  
file_path: PaddleSeg/contrib/MedicalSeg/medicalseg/utils/timer.py
imports: import time
label_desc: Use image node_id 5 for calling the TimeAverager obj's underlying member method code with example usage: obj.get_ips_average() and returns: unknown, int