Hello, I've seen several posts about this, but I'm a little hesitant to use older posts since you guys put out new and improved versions pretty quickly. We are using SDK 16.0 and an nRF52832.
What is the best way to keep track of precise real time (in our case, seconds)? We started using a timer like the one below, and found that it wasn't quite 1000Hz, we were off by a few minutes every day.
Is there a relatively simple way we can do better than this? Any thoughts, or a link to sample code or the applicable doc would be awesome.
Thanks!
uint32_t rtncode_timerinit = app_timer_init();
uint32_t rtncode_timercreate = app_timer_create(&m_serviceloop_timer_id, APP_TIMER_MODE_REPEATED, ServiceLoop_Timeout_Handler_1000Hz);