MCPcopy Create free account
hub / github.com/ZhengdiYu/SignAvatars / toggle_pause

Method toggle_pause

visualizer/aitviewer/utils/perf_timer.py:98–103  ·  view source on GitHub ↗

Toggle the paused state

(self)

Source from the content-addressed store, hash-verified

96 self._pause_time = time.perf_counter()
97
98 def toggle_pause(self):
99 """Toggle the paused state"""
100 if self.is_paused:
101 self.start()
102 else:
103 self.pause()
104
105 def stop(self) -> Tuple[float, float]:
106 """

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
pauseMethod · 0.95

Tested by

no test coverage detected