measure_rtt: add debug output
improve measure_rtt