MCPcopy Create free account
hub / github.com/formkit/formkit / startTimer

Function startTimer

scripts/build.mjs:289–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287
288let timeout
289function startTimer() {
290 timeout = setTimeout(() => {
291 progress.timeElapsed = ((performance.now() - startTime) / 1000).toFixed(2)
292 if (usingProgressBar) {
293 progressBar.update({
294 value: Math.min(progress.logs.length, progress.expectedLogs),
295 total: progress.expectedLogs,
296 suffix: `${progress.step} | ${progress.timeElapsed}s`,
297 })
298 startTimer()
299 }
300 }, 10)
301}
302
303function buildComplete() {
304 if (usingProgressBar) {

Callers 1

buildPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected