X VAR BYTE

SYMBOL P_In = PORTB.0

PULSIN P_In, 1, X

' Start timing cycle here

PULSIN starts counting on the positive going edge, and stops on 1 to 0 transition allowing you to start your timing cycle after the high-going pulse starts & ends.

You can just discard the result returned in X if you don't need it.