Input Capture Pin Atmel ATmega328P
I assume the timer value (as defined by the pre-scaler etc) is not affected by other code running i.e. it is updated every nth clock regardless of what instruction is next?


yes, unless your code writes to the registers involved.