title: Getting seconds from chronometer to an integer
body: <p>I'm creating game that will increase it's level every 10 seconds, the users will see the time (using chronometer) and the level they currently at.
  I'm trying to create an integer that will be incremented every 10 seconds as shown on the chronometer.</p>
  
  <p>I didn't find a guide here that is answering my needs.
  I tried to guess that the chronometer is running as milliseconds, which wasn't the case. </p>
  
  <p>Inside my Class:</p>
  
  <pre><code>private Chronometer chronometer;
  </code></pre>
  
  <p>Inside my onCreate (used XML):</p>
  
  <pre><code>chronometer=findViewById(R.id.timer);
  </code></pre>
  
  <p>Trying to converte the chronometer to seconds (only attempted first try):</p>
  
  <pre><code>        int timeChecker=(int) (SystemClock.elapsedRealtime() - chronometer.getBase());
          if (timeChecker==10){
              lvl++;
              lvlcount.setText(lvl+"");
          }
  
  </code></pre>
  
  <p>I've wanted to increase the level every 10 second and than change the TextView with the previous level.</p>