MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / _format_elapsed

Method _format_elapsed

codewiki/cli/utils/progress.py:133–142  ·  view source on GitHub ↗

Format elapsed time.

(self)

Source from the content-addressed store, hash-verified

131 return f"00:{seconds:02d}"
132
133 def get_eta(self) -> Optional[str]:
134 """
135 Estimate time remaining.
136
137 Returns:
138 ETA string or None if cannot estimate
139 """
140 elapsed = time.time() - self.start_time
141 progress = self.get_overall_progress()
142
143 if progress <= 0.0:
144 return None
145

Callers 3

start_stageMethod · 0.95
update_stageMethod · 0.95
complete_stageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected