Pulse consistency test using wait_us in a thread