MCPcopy Index your code
hub / github.com/idank/explainshell / _fmt_elapsed

Function _fmt_elapsed

explainshell/manager.py:75–80  ·  view source on GitHub ↗

Format elapsed seconds as a human-readable string.

(seconds: float)

Source from the content-addressed store, hash-verified

73
74
75def _fmt_elapsed(seconds: float) -> str:
76 """Format elapsed seconds as a human-readable string."""
77 m, s = divmod(int(seconds), 60)
78 if m:
79 return f"{m}m{s}s"
80 return f"{s}s"
81
82
83def _parse_mode(raw: str | None) -> tuple[str | None, str | None]:

Callers 1

_log_summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected