MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / elapsed

Function elapsed

packages/components/src/handler.ts:200–207  ·  view source on GitHub ↗
(run: Run)

Source from the content-addressed store, hash-verified

198}
199
200export function elapsed(run: Run): string {
201 if (!run.end_time) return ''
202 const elapsed = run.end_time - run.start_time
203 if (elapsed < 1000) {
204 return `${elapsed}ms`
205 }
206 return `${(elapsed / 1000).toFixed(2)}s`
207}
208
209export class ConsoleCallbackHandler extends BaseTracer {
210 name = 'console_callback_handler' as const

Callers 12

onChainEndMethod · 0.90
onChainErrorMethod · 0.90
onLLMEndMethod · 0.90
onLLMErrorMethod · 0.90
onToolEndMethod · 0.90
onToolErrorMethod · 0.90
onChainEndMethod · 0.70
onChainErrorMethod · 0.70
onLLMEndMethod · 0.70
onLLMErrorMethod · 0.70
onToolEndMethod · 0.70
onToolErrorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected