// RoundtripSample converts a roundtrip time in nanosecond to a floating-point time in milliseconds func RoundtripSample(series string, rtt int64) dccp.Sample { return dccp.NewSample(series, float64(rtt)/1e6, "ms") }
// LossSample generates a log sample with loss information func LossSample(series string, lossRateInv uint32) dccp.Sample { return dccp.NewSample(series, 100/float64(lossRateInv), "%") }