Code:
PULSIN Input, 1, HiPart
RCTIME Input, 0, LoPart
That's done ... ( may be some µS ( 4 or 6 ? ) to add to LoPart to be really true ... )

Alain