MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / formatTime

Function formatTime

packages/tools/src/definitions/response-time-analysis.ts:78–83  ·  view source on GitHub ↗
(s: number)

Source from the content-addressed store, hash-verified

76 }
77
78 const formatTime = (s: number) => {
79 if (s < 60) return isZh ? `${s}秒` : `${s}s`
80 const m = Math.floor(s / 60)
81 const sec = s % 60
82 return isZh ? `${m}分${sec}秒` : `${m}m${sec}s`
83 }
84
85 const ranking = stats.map((s, i) => ({
86 rank: i + 1,

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected