time1 = start
time2 = when interrupt happens which sets flag
time3 = when flag is cleared
time4 = end
So, you want to ignore time2 to time3 ?
time1 = start
time2 = when interrupt happens which sets flag
time3 = when flag is cleared
time4 = end
So, you want to ignore time2 to time3 ?