MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / formatElapsed

Function formatElapsed

desktop/ui/setup.js:59–64  ·  view source on GitHub ↗
(startedAt)

Source from the content-addressed store, hash-verified

57}
58
59function formatElapsed(startedAt) {
60 const seconds = Math.floor((Date.now() - startedAt) / 1000);
61 const minutes = Math.floor(seconds / 60);
62 const rest = seconds % 60;
63 return minutes > 0 ? `${minutes}m ${rest}s` : `${rest}s`;
64}
65
66function startProgressStatus(messages) {
67 const startedAt = Date.now();

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected