long duration = TimeUnit.MINUTES.toMillis((long) 6.3); new CountDownTimer(duration, 1000) { @Override public void onTick(long l) { String sDuration