MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / formatDuration

Function formatDuration

apps/kimi-web/src/composables/useKimiWebClient.ts:971–974  ·  view source on GitHub ↗
(ms: number | undefined)

Source from the content-addressed store, hash-verified

969}
970
971function formatDuration(ms: number | undefined): string | undefined {
972 if (typeof ms !== 'number' || !Number.isFinite(ms)) return undefined;
973 return `${Math.round(ms)}ms`;
974}
975
976function errorDetails(operation: string, err: unknown, sessionId?: string): AppNoticeDetail[] {
977 const network = isDaemonNetworkError(err);

Callers 1

errorDetailsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected