MCPcopy Create free account
hub / github.com/continuedev/continue / formatDuration

Function formatDuration

extensions/cli/src/ui/JobsSelector.tsx:24–27  ·  view source on GitHub ↗
(job: BackgroundJob)

Source from the content-addressed store, hash-verified

22}
23
24function formatDuration(job: BackgroundJob): string {
25 const endTime = job.endTime ? job.endTime.getTime() : Date.now();
26 return `${Math.round((endTime - job.startTime.getTime()) / 1000)}s`;
27}
28
29export function JobsSelector({ onCancel }: JobsSelectorProps) {
30 const [selectedIndex, setSelectedIndex] = useState(0);

Callers 1

JobsSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected