MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / startElapsedTicker

Method startElapsedTicker

src/ui/StatusBarService.ts:347–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345 }
346
347 private startElapsedTicker(): void {
348 if (this.elapsedUpdateInterval !== null) {
349 return;
350 }
351
352 this.elapsedUpdateInterval = window.setInterval(() => {
353 if (this.currentTrackedTasks.length === 0) {
354 this.stopElapsedTicker();
355 return;
356 }
357
358 this.renderStatusBar(this.currentTrackedTasks);
359 }, 1000);
360 }
361
362 private stopElapsedTicker(): void {
363 if (this.elapsedUpdateInterval !== null) {

Callers 1

renderStatusBarMethod · 0.95

Calls 3

stopElapsedTickerMethod · 0.95
renderStatusBarMethod · 0.95
setIntervalMethod · 0.65

Tested by

no test coverage detected