title: android: update scores according to the timer's milliseconds
body: <p>There is a timer in the app coded as follows:</p>
  
  <pre><code>private Runnable updateTimerThread = new Runnable() 
  {
      public void run() 
      {
          if (game_pause ==false)
          {
              timeInMilliseconds = SystemClock.uptimeMillis() - startTime;
              updatedTime = timeSwapBuff + timeInMilliseconds;
  
              int secs = (int) (updatedTime / 1000);
              int mins = secs / 60;
              secs = secs % 60;
              int milliseconds = (int) (updatedTime % 1000);
              text_time.setText("" + mins + ":"
                      + String.format("%02d", secs) + ":"
                      + String.format("%03d", milliseconds));
              customHandler.postDelayed(this, 0);     
  
              if (milliseconds % 10 == 0)
              {
                  update_score_level(1);
              }
          }
          else
          {
              text_time.setText("Paused!");
          }
      }
  };
  </code></pre>
  
  <h2>Question:</h2>
  
  <p>The score will be updated for every <code>if (milliseconds % 10 == 0)</code>. However, coding in this way though the time runs smoothly, the update of score appears extremely not smooth (not linear speed, sometimes fast sometimes slow). </p>
  
  <p>Would like to show this way:
  0:00:100 ---> Score +1;
  0:00:200 ---> Score +1;
  0:00:300 ---> Score +1;
  How could the above be modified?</p>
  
  <p>Thanks!</p>