MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / formatDuration

Function formatDuration

packages/playground/src/components/TransportBar.ts:389–394  ·  view source on GitHub ↗
(milliseconds: number)

Source from the content-addressed store, hash-verified

387}
388
389function formatDuration(milliseconds: number): string {
390 let seconds = milliseconds / 1000;
391 const minutes = (seconds / 60) | 0;
392 seconds = (seconds - minutes * 60) | 0;
393 return `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;
394}

Callers 1

constructorMethod · 0.85

Calls 1

StringClass · 0.85

Tested by

no test coverage detected