The tcprtt utility reliably measures the TCP handshake round trip time using the stats(3) statistics framework.