MCPcopy Create free account
hub / github.com/Marus/cortex-debug / startTimer

Method startTimer

src/frontend/views/live-watch.ts:483–492  ·  view source on GitHub ↗
(subtract: number = 0)

Source from the content-addressed store, hash-verified

481 }
482
483 private startTimer(subtract: number = 0) {
484 // console.error('Starting Timer');
485 this.killTimer();
486 this.timeout = setTimeout(() => {
487 this.timeout = undefined;
488 if (LiveWatchTreeProvider.session) {
489 this.refresh(LiveWatchTreeProvider.session, true);
490 }
491 }, this.timeoutMs - subtract);
492 }
493
494 private killTimer() {
495 if (this.timeout) {

Callers 3

restartMethod · 0.95
debugSessionStartedMethod · 0.95
debugContinuedMethod · 0.95

Calls 2

killTimerMethod · 0.95
refreshMethod · 0.95

Tested by

no test coverage detected