title: Android - Chronometer setBase() doesn't work properly
body: <p>I found that if I call <code>start()</code> right after <code>setBase(SystemClock.elapsedRealtime())</code> it will start counting from 00:00 (which is fine), see below:</p>
  
  <pre><code>startButton.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
          chronometer.setBase(SystemClock.elapsedRealtime());
          chronometer.start();
      }
  });
  </code></pre>
  
  <p>However, if I place the <code>setBase(SystemClock.elapsedRealtime())</code> out of the <code>setOnCLickListener()</code> like this: </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      chronometer = findViewById(R.id.main_chronometer);
      startButton = findViewById(R.id.main_start_button);
      resetButton = findViewById(R.id.main_reset_button);
  
      chronometer.setBase(SystemClock.elapsedRealtime());    //no good here
  
      startButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              //chronometer.setBase(SystemClock.elapsedRealtime());
              chronometer.start();
          }
      });
  }
  </code></pre>
  
  <p>It will start counting from the elapsed time since this app launches. Why?</p>