Wrap up pulseIn/pulseOut

Note that these are inherently not very accurate.