Error in callback rate with CountDownTimer?
<p>I have been building a small darkroom timer application, as I learn Android and java.<br>
Ended up using CountDownTimer, as it does most of the work for me. :{)<br>
However, I ran into what looks like an error in the class.  </p>

<p>My initial structure used the onTick() callback to decrement my time counter, and update the time-remaining display. If I set it up for example:</p>

<pre><code>            new CountDownTimer(60000, 100) {

                 public void onTick(long millisUntilFinished) {
                     mDisplayTime.setText(String.valueOf(millisUntilFinished)/1000);
                     timeTenths -= 1;
                     updateDisplay();
                 }

                 public void onFinish() {
//                   mDisplayTime.setText("Done!");
                 }
              }.start();
</code></pre>

<p>The total timeout (60 seconds) is spot on, within half a second by my stopwatch.<br>
However, the displayed count stops with 3.0 seconds on the clock.<br>
Experimenting with it, I found a consistent 5% "shortage" in onTick() events.<br>
I could change the second parameter to 950 milliseconds, but that's an ugly kludge...</p>

<p>In the end, I changed the onTick() to display actual millisUntilFinished, which is fine, and eliminates my counter as well.</p>

<p>Is this a known problem with CountDownTimer()?</p>

<p>Dave</p>
