I needed to make an accurate latency test of my system, so I took inspiration from the old MSP latency test patch under "examples/utilities" folder and built an alternative version in gen. There were a couple of active discussions here and here, from which I took the threshold trick that Graham implemented.
Please tell me what you think about it!