I need to time an incoming pulse that can be anywhere from 35 to 1000 mS long. I am not sure weather to use the external interrupt B0 or the CCP1. I am using a 18F242 pic chip. Is it possible to set up T1 to overflow every 1mS and load the number of times it overflows between the Low to High pulse into a word variable. Will this work

Set CCP1 to interrupt on low to high
Set CCP2 to interrupt on high to low

When CCP1 interrupts start T1
When CCP2 interrupts place the number of times (every 1mS) that T1 overflows into a word variable then reset variable to 0 after use.

Any sugestions....