Looking for variant approach/sketch

@GolamMostafa

No conflict, no worries.
There might be one problem in your test sketch which is the Serial.print statement which might cause some interrupts in the background.

To see if this us the case you should add a delay(100) before each test so Serial has time to flush.

A good test is to switch the two functions in your code to see if the order and the Serial.print() affects the timing.

1 Like