Hi, I'm using an nRF52805 TWI sensor (400kHz, 1 complete received data is 9 bytes = 72 bits). The ideal time difference between each TWI sensor measurement is 72bits/400kHz = 18us.
Because my code contains TWI (low priority), SAADC and BLE, so TWI will be interrupted by other functions occasionally. The time difference between each received TWI measurement might be slightly different. I need a method to get the time difference (us level) between each TWI measurement.
What's the best way to do it, please? Could you provide any example code, please?
Thanks!

