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

Method get_elapsed

src/core/utils.py:578–584  ·  view source on GitHub ↗

获取经过的时间(秒)

(self)

Source from the content-addressed store, hash-verified

576 logger.debug(f"{self.name} 耗时: {self.elapsed:.2f} 秒")
577
578 def get_elapsed(self) -> float:
579 """获取经过的时间(秒)"""
580 if self.elapsed is not None:
581 return self.elapsed
582 if self.start_time is not None:
583 return time.time() - self.start_time
584 return 0.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected