Consider replacing the forever loop (here) with a everyInterval() or some other variation that runs in background. (everyInterval() in eventually delegates to runInParallel (here), which may not be any better/different. Review.
Add in a daily correction factor (# of ms to adjust +/- per day?). Maybe do this by modular updates to skip/freeze a second? Or just at single time per day? Prefer the continual approach.
Update the event handler mechanism (here to be less wonky. Use event that are registered with DAL/CODAL? See regiterWithDAL() examples, like here and corresponding MicroBitEvent calls.
forever
loop (here) with aeveryInterval()
or some other variation that runs in background. (everyInterval()
in eventually delegates torunInParallel
(here), which may not be any better/different. Review.regiterWithDAL()
examples, like here and correspondingMicroBitEvent
calls.