Thanks guys ,

Both the RCTIME and counter solutions work , as well as my temp get around.

I was not aware of the RCTIME command ,thanks for that

because the times being measured are so long at this point in the signal (IR input) , is not a big timing issue for how it is checked using the if command etc

cheers

Sheldon