Hi Nordic Team,
In one of our product we are using nrf-52840 microcontroller. As per our product requirement we are using k_uptime_get() to measure the time with below configurations in both muc_boot.conf and proj.conf files. The CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000 is also set in proj.conf file. Initially the device time is synced with the server time through a command we receive through BLE which calls the set_time() method and then to get current time at any instant get_time() method is used. In this way our device time is tracked/synced with the current epoch time and that actually works but after some days if we don't sink the device time with the server time then our device time leads the current epoch time starting form secs then minutes and then upto hours and this is something we are surprised that how come device time leads the current time. In our initial investigation we come to know that the time we are getting through k_uptime_get() is not correct actually its moving faster and that leads the device time move ahead then the current time. Then in order to slow it down we have set CONFIG_SYS_CLOCK_TICKS_PER_SEC=1024 and by doing this we tested the device for 2 days and get the time synced till we didn't enable the timely reboot of device that we are doing once a day at night (as our product) requirement. Kindly let me know what is missing from our end. We also have external oscillator but we are not currently using it. Your help in this will be appreciated.