Java countdown timer for offline use