Thanks Psdayama, Mat and Sayzer.

I have downloaded the code and paper.
Can anyone guide me hw to calculate the pulse width's effectively?