Implementing input capture correctly on a PIC
Function CCP1 is by default mapped to RB3. To remap it to RB0, bit CCP1SEL in register APFCON0 has to be set.

Gating can be used to measure on-time or off-time, but it is not needed for period measurement.