MCPcopy Create free account
hub / github.com/echoVic/blade-code / formatTime

Method formatTime

src/ui/components/Progress.ts:342–351  ·  view source on GitHub ↗

* 格式化时间

(ms: number)

Source from the content-addressed store, hash-verified

340 * 格式化时间
341 */
342 private formatTime(ms: number): string {
343 const seconds = Math.floor(ms / 1000);
344 const minutes = Math.floor(seconds / 60);
345
346 if (minutes > 0) {
347 return `${minutes}m ${seconds % 60}s`;
348 } else {
349 return `${seconds}s`;
350 }
351 }
352}

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected