Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
05241c15dThis file is pinned to the selected release. Download the original to open it in your design tool.
/** Format a seconds count as m:ss (e.g. 83 → "1:23"). */
export function formatClock(s: number): string {
const m = Math.floor(s / 60);
const ss = Math.round(s % 60);
return m + ":" + String(ss).padStart(2, "0");
}