You could timestamp one edge of your pulse, and timestamp the other edge. The difference would give you the pulse duration