function pauseTimer() {
  if (counterInterval){
    clearTimeout(counterInterval);
    counterInterval = undefined;
  }
  // update layout to display "Paused"
  timerLayout.clear(timerLayout.time);
  timerLayout.time.label = "||";
  timerLayout.clear(timerLayout.set);
  timerLayout.set.label = "Paused";
  timerLayout.render();
}
/** Pauses the timer by clearing the counterInterval */
Pauses the timer by clearing the counterInterval
Pauses the timer by clearing the counterInterval
function pauseTimer() {
  if (counterInterval){
    clearTimeout(counterInterval);
    counterInterval = undefined;
  }
  timerLayout.clear(timerLayout.time);
  timerLayout.time.label = "||";
  timerLayout.clear(timerLayout.set);
  timerLayout.set.label = "Paused";
  timerLayout.render();
}
function pauseTimer ( ) { if ( counterInterval ) { clearTimeout ( counterInterval ) ; counterInterval = undefined ; } timerLayout . clear ( timerLayout . time ) ; timerLayout . time . label = "||" ; timerLayout . clear ( timerLayout . set ) ; timerLayout . set . label = "Paused" ; timerLayout . render ( ) ; }
Pauses the timer by clearing the counterInterval
Pauses the timer by clearing the counterInterval
// update layout to display "Paused"