title: Create an incrementing timer in seconds in 00:00 format?
body: <p>I want to create an incrementing second timer like a stopwatch.</p>
  
  <p>So I want to be able to display the seconds and minutes incrementing in the format 00:01...</p>
  
  <p>Google only brings up 24 hour clock examples, I was wondering could anyone get me started with an example or tutorial of what I want to do?</p>
  
  <p>Edit:</p>
  
  <p>Here is what I have using the Chronometer in Android so far</p>
  
  <p><strong>In onCreate()</strong></p>
  
  <pre><code>    secondsT = 0;
      elapsedTimeBeforePause = 0;
  
      stopWatch.start();
      startTime = SystemClock.elapsedRealtime();
      stopWatch.setBase(elapsedTimeBeforePause);
  
       stopWatch.setOnChronometerTickListener(new OnChronometerTickListener(){
              @Override
              public void onChronometerTick(Chronometer arg0) {
                  //countUp is a long declared earlier
                  secondsT = (SystemClock.elapsedRealtime() - arg0.getBase()) / 1000;
                  String asText = (secondsT / 60) + ":" + (secondsT % 60); 
                  //textGoesHere is a TextView
                  ((TextView)findViewById(R.id.time)).setText(asText);
              }
       });
  </code></pre>
  
  <hr>
  
  <p><strong>In onDestroy()</strong></p>
  
  <pre><code>@Override
  public void onDestroy() {
  
      inCall = false;
      elapsedTimeBeforePause = SystemClock.elapsedRealtime() - stopWatch.getBase();
  
      super.onDestroy();
  }
  </code></pre>
  
  <p>The above compiles and runs but the TextView never increments, it always stays at 0, can anyone see why?</p>