code: def record(self, usetime, num_samples=None):
      self._cnt += 1
      self._total_time += usetime
      if num_samples:
          self._total_samples += num_samples
  
file_path: PaddleSeg/paddleseg/utils/timer.py
imports: import time
label_desc: Use image node_id 3 for calling the TimeAverager obj's underlying member method code with example usage: obj.record(usetime, num_samples) without return types