title: Losing accuracy as thread speed increases
body: <p>So i have this simple thread that updates my TextBox with the new time difference every second.</p>
  
  <pre><code>try {
          Thread.sleep(1000);
      } catch(InterruptedException ex) {
          Thread.currentThread().interrupt();
      }
  
      editTextBox.setText(""+timeDifference);
  </code></pre>
  
  <p>But I want the TextBox to update faster, yet maintain the same value. So my idea was to reduce the sleep value to 1/4 of what it is now (250), and to keep my output the same I would also cut my output by 1/4, resulting in this:</p>
  
  <pre><code>try {
          Thread.sleep(250);
      } catch(InterruptedException ex) {
          Thread.currentThread().interrupt();
      }
  
      editTextBox.setText(""+timeDifference/4);
  </code></pre>
  
  <p>However the 2nd examples output is about 10% behind. Why is this? Does the computation of my processes take longer than 250ms and that's why its behind?</p>
  
  <p>thanks in advance</p>