Measure time accurately

I would expect pulsIn to be simpler and at least as accurate.