It might be helpful to take your unused GPIO.2 and connect it to the Rx of a RS-232 port on your PC, then use DEBUGOUT or SEROUT2 to send the value of PULSIN to the PC. It is even better if you have one of those little TTL-RS232 converters lying around and use that.

Serial ports make wonderful debugging tools.