Sorry I missed that you had already seen Tim’s code. Delay is relevant in that a more cloud-friendly implementation of pulseIn() would use interrupts and not block the cloud connection.
The “build” button you linked to is the web-based IDE where you can compile and download to your core over-the-air. You can cut-and-paste Tim’s code into your program their and be done in minutes.
Are you looking for instructions on doing a local build even though you don’t need to? Those are here: