PIC measuring PWM pulse length
There are various ways to measure the width of incoming pulses.  Which is most appropriate depends on the width of the pulses, what accuracy you need, and which peripherals your PIC has.  Some possibilities are:

Use two CCP modules in capture mode.  This is not possible for your particular PIC since it has only one CCP module, I'll mention it anyway for others or in case you change the PIC.  A CCP module in capture mode grabs a snapshot of the free running 16 bit timer 1 on the edge of a I/O pin.  With two of these captures, one for each edge, you subtract them to get the pulse duration.

This method allows for the shortest duration pulses and has the most accuracy, but takes two CCP modules.

Use a single CCP module and flip the edge it captures on in a interrupt triggered by the first capture.  This has the same accuracy and resolution as #1 and uses only a single CCP module, but requires the pulse to be some minimum width so that the interrupt routine has time to grab the captured value switch the capture edge polarity.  

Capture the free running timer 1 in firmware every edge, then do the subtraction as in #1 and #2.  This requires no CCP module at all, but there must be some minimum time between edges for the interrupt routine to do its job.  It also has a bit more error due to some uncertainty in the interrupt response, and possibly in variable number of instructions from the interrupt routine if not coded carefully.

Gate timer 1 from the pulse.  Have the trailing edge cause a interrupt, which then reads the timer 1 value and possibly resets it ready for the next pulse.  This has good accuracy and resolution, but requires some minimum time between pulses for the interrupt to grab the timer 1 value and set up for the next pulse.



There are other methods too, but without knowing more about the characteristics of your pulses it's not worth spending time on them.  Given that your PIC has a single CCP module and timer 1 with gating option, methods 2 and 4 are worth considering.  Again, it would help to know more about the pulse characteristics.

One thing I didn't metion is overflow handling for long pulses, but if your pulses are known to be short enough this is not a issue.