user57281: This is actually a follow up question to this question, so basically I'm using DS18B20 temperature sensor which requires Onewire.h library that interrupts millis() function.
Luckily i have a DS3231 RTC module which I'm using it with RTClib library, is there any way to use that module as a timer instead of millis() function?

user4143: You can use the SQW output of the module to indicate the passage of precisely 1 second. Every time it transitions from LOW to HIGH one second will have passed.
RTCs cannot give you times of higher resolution than 1 second, but they can give you that 1 second granularity to a high accuracy.

57281: <p>This is actually a follow up question to <a href="https://arduino.stackexchange.com/questions/67125/is-ds18b20-temperature-sensor-makes-arduino-processing-slow">this question</a>, so basically I'm using DS18B20 temperature sensor which requires Onewire.h library that interrupts millis() function.</p>

<p>Luckily i have a <a href="https://rads.stackoverflow.com/amzn/click/com/B00HCB7VYS" rel="nofollow noreferrer" rel="nofollow noreferrer">DS3231 RTC</a> module which I'm using it with <a href="https://github.com/adafruit/RTClib" rel="nofollow noreferrer">RTClib library</a>, is there any way to use that module as a timer instead of millis() function?</p>
 4143: <p>You can use the SQW output of the module to indicate the passage of precisely 1 second. Every time it transitions from LOW to HIGH one second will have passed.</p>

<p>RTCs cannot give you times of higher resolution than 1 second, but they can give you that 1 second granularity to a high accuracy.</p>
