Help with Code : Interrupts/Timers/PWM

Hi there,
:frowning:
I am struggling to program the UNO for a project that I am working on. Pin 9 on one UNO board is generating a 125kHz wave which is being read by another UNO's pin 5. I want to capture values at every 4us and display it on the serial monitor. Can someone point me in the right direction? I just dont seem to understand the Timer/Interrupt scene on MCUs.

Best,
A

Perhaps you also don’t understand how long it takes to send characters over a serial port... or understand that we actually need to see a program to be able to comment on it.