add measure_rtt (untested, but it compiles)