/** Update the RTC */ private void updateRTC() { rtc.setStamp(TimeSteward.currentTimeMillis()); }
/** Check if the RTC should be updated */ private boolean shouldUpdateRTC() { long stamp = rtc.getStamp(); long now = TimeSteward.currentTimeMillis(); return stamp < (now - TIME_THRESHOLD) || stamp > (now + TIME_THRESHOLD); }