MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / fmt

Function fmt

docs/components/Playground.jsx:106–106  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

104 const onRunClick = () => runCode(editorRef.current?.getCode() ?? defaultCode)
105
106 const fmt = (ms) => (ms < 1000 ? `${ms.toFixed(0)}ms` : `${(ms / 1000).toFixed(2)}s`)
107 const liveText = result ? applyTerminalControls(result.text).replace(/\n$/, '') : ''
108 const differs = result && !result.error && liveText !== defaultText
109 const termBody = result ? [liveText, result.error].filter(Boolean).join('\n') : defaultText

Callers 2

timeFunction · 0.85
PlaygroundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected