all you need to do is to set up the timer, but keep it stopped.
wait for the leading edge of the pulse, then turn on the timer.
wait for the trailing edge of the pulse, then turn off the timer.
at that point, return the count.
on 8Mhz crystal, I got 8003 while counting a 1000us pulse, vs. a 8000 theoretical count.