Measure rate of change
I am measuring temperature from sensor via i2c in a loop with one second delay. There are various other functions also in loop. Those functions may take time from 10ms to 500 ms depending on Rx_Callback.
I need to measure rate of change of temperature from sensor. I can implement HAL_Gettick() to get accurate time internal between two measurements. But I am afraid that HAL_Gettick() counter will reset to 0 after few days.
Is there any other way to measure accurate timing between two measurements of temperature ?