Sync RTC to GNSS time without large time step

Hi Nordic Dev team,

I'm using the older nRF SDK in a project that is built using a nRF52840.  I have an RTC and a GNSS connected to the nRF52840.  I use one of the LP timers internally to keep track of time as an internal RTC that can quickly be accessed in memory for time stamping my sensor values.  I'm looking for ways of keeping the RTC from drifting from GNSS time that doesn't create large time discontinuities (steps) in my sensor logs.  Do you have any examples of this that I can refer too?

Thanks,

Related