MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / ShellTimeDisplay

Function ShellTimeDisplay

src/components/shell/ShellTimeDisplay.tsx:10–23  ·  view source on GitHub ↗
({ elapsedTimeSeconds, timeoutMs }: Props)

Source from the content-addressed store, hash-verified

8};
9
10export function ShellTimeDisplay({ elapsedTimeSeconds, timeoutMs }: Props): React.ReactNode {
11 if (elapsedTimeSeconds === undefined && !timeoutMs) {
12 return null;
13 }
14 const timeout = timeoutMs ? formatDuration(timeoutMs, { hideTrailingZeros: true }) : undefined;
15 if (elapsedTimeSeconds === undefined) {
16 return <Text dimColor>{`(timeout ${timeout})`}</Text>;
17 }
18 const elapsed = formatDuration(elapsedTimeSeconds * 1000);
19 if (timeout) {
20 return <Text dimColor>{`(${elapsed} · timeout ${timeout})`}</Text>;
21 }
22 return <Text dimColor>{`(${elapsed})`}</Text>;
23}

Callers

nothing calls this directly

Calls 1

formatDurationFunction · 0.50

Tested by

no test coverage detected