Thank you. I didn't understand what you meant by the phrase "clock race," but I get it now.Russell 27 wrote:...you asked this a few days back " After both clocks woke from sleep, did you notice if the rev d board ran fast for the first five to ten minutes?" I used the term clock race to describe this...
I use the word "bug" a bit differently, so I looked it up. Merriam-Webster defines "bug" a bit more generally--"an unexpected defect, fault, flaw, or imperfection <the software was full of bugs>"--and that is what I meant when I used the word "bug." I apologize for the confusion.Russell 27 wrote:Bug is a coined word to describe a situation or problem that arises undesirably at certain times, while not being present at other times.
I understand your claim--or at least I think I do. My point is that there are other possible explanations for the drift you observed.Russell 27 wrote:My point here is I don't know if I am conveying my thought on software correction being defined during battery/sleep.
In fact, it's easy to show that drift correction functions during sleep. I defined AUTODRIFT_CONSTANT to 1 in config.h and programmed a clock. With that definition, the clock should advance by an extra 1/128 second for every clock-second. So I set the time and waited 128 seconds... as expected, the clock was one second fast. I again set the time, immediately unplugged the power adapter, waited 128 seconds, and plugged the adapter back in... the clock was still one second fast. Therefore the software drift correction does seem to work while awake and while sleeping.
Apologies here... my mistake! The difference was 2 seconds over one week--not a week and a half--so the difference is on the order of 3 ppm or 0.1 Hz. But my point remains the same. Software drift correction should function normally during sleep, so the timekeeping discrepancy you observed almost certainly has another cause.Russell 27 wrote:From my calculations and test, 2 seconds a week would amount to a .1 hertz deviation, exactly what I found.