I need a timer which counts in 10 Min steps from 0:00 to 23:50 and counts the number of the days every time the timer gets to 0:00. Pls dont send me links. I cant open them
private long incTime = System.currentTimeMillis()+600000;
private int counter;
public void act()
{
if (System.currentTimeMillis() >= incTime) bumpCounter();
}
private void bumpCounter()
{
incTime += 600000;
counter++;
updateDisplay();
}
private void updateDisplay()
{
int count = counter;
int days = count/144;
count = count%144;
int hrs = count/6;
int mins = (count%6)*10;
// etc. (use 'days' 'hrs' and 'mins' to display time)
}