MCPcopy
hub / github.com/OpenBMB/ChatDev / get_timer

Method get_timer

utils/logger.py:490–493  ·  view source on GitHub ↗

Return the elapsed time recorded by the timer key.

(self, timer_key: str)

Source from the content-addressed store, hash-verified

488 self._timers[f"memory_{node_id}_{operation_type}_{stage}"] = duration
489
490 def get_timer(self, timer_key: str) -> Optional[float]:
491 """Return the elapsed time recorded by the timer key."""
492 self.__init_timers__()
493 return self._timers.get(timer_key)

Callers 6

record_node_endMethod · 0.80
record_model_callMethod · 0.80
record_tool_callMethod · 0.80

Calls 2

__init_timers__Method · 0.95
getMethod · 0.45

Tested by

no test coverage detected