title: Reset milliseconds to zero every 10 seconds
body: <p>How can I reset the currentTimeMillis() to zero after reaching 10 seconds?</p>
  
  <pre><code>int  i  = 0;
  while ( i != 10) {
      i  =  (int)(System.currentTimeMillis() / 1000) % 60;
      System.out.println(i);
  }
  </code></pre>
  
  <p>Milliseconds keeps counting even though the app is dead. Any ideas?</p>