MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / __exit__

Method __exit__

src/core/utils.py:573–576  ·  view source on GitHub ↗
(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

571 return self
572
573 def __exit__(self, exc_type, exc_val, exc_tb):
574 self.elapsed = time.time() - self.start_time
575 logger = logging.getLogger(__name__)
576 logger.debug(f"{self.name} 耗时: {self.elapsed:.2f} 秒")
577
578 def get_elapsed(self) -> float:
579 """获取经过的时间(秒)"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected