class_docstr: A running estimate of performance (operations/sec) using adjusted exponential moving average
  :param alpha: Smoothing factor in range [0, 1], [default: 0.1].
docstr: While inside this context, EMA will not count the time passed towards the performance estimate
docstr_tok: ["While","inside","this","context",",","EMA","will","not","count","the","time","passed","towards","the","performance","estimate"]
code: def pause(self):
      """While inside this context, EMA will not count the time passed towards the performance estimate"""
      self.paused, was_paused = True, self.paused
      try:
          yield
      finally:
          self.paused = was_paused
          self.reset_timer()
  
file_path: hivemind/hivemind/utils/performance_ema.py
imports: import time
  from contextlib import contextmanager
  from threading import Lock
  from typing import Optional
label_desc: Use image node_id 4 for calling the PerformanceEMA obj's underlying member method code with example usage: obj.pause() without return types