Simple Photon Ping Sensor (HC-SR04)

@Hootie81 if you take the pulsein function and replicate it in your user app, if you do not divide the returned result by SYSTEM_US_TICKS (120 on the Photon and 72 on the Core), you’ll get the highest timing resolution available on both devices.

Also you can try using interrupts for greater accuracy: