title: Java Android: how to increment a chronometer by 2 seconds after you clicked a button?
body: <p>I'm working to an app which requires a chronometer, and I can't find a solution to increment it by 2 seconds each time I click a button</p>
  
  <pre><code>//chronometer session
  //private Chronometer chronometer;
  //private boolean isRunning;
  //private long pauseOffset;
  
  //...
  
      public void StartChronometer(){
          if(!isRunning){
              chronometer.setBase(SystemClock.elapsedRealtime() - pauseOffset);
              chronometer.start();
              isRunning = true;
          }
  
      }
  
      public void PauseChronometer(){
          if(isRunning){
              chronometer.stop();
              pauseOffset = SystemClock.elapsedRealtime() - chronometer.getBase();
              isRunning = false;
          }
  
      }
  
      public void ResetChronometer(){
          chronometer.setBase(SystemClock.elapsedRealtime());
          pauseOffset = 0;
  
      }
  
      public void IncrementByTwo(){
          if(!isRunning){
              chronometer.setBase(SystemClock.elapsedRealtime());
     //????????????????????? NO IDEA ????????????????????????
  
          }
      }
  
  </code></pre>
  
  <p>I don't have any idea how to increment it, I need a new chronometer to add in background, and when I click a button to call the function IncrementByTwo and maybe that is all? 2 chronometers, one live, one in background, and somehow to add the second one each time I click the button (absurd or I don't know)</p>