A Flexible, Protocol-agnostic Latency Measurement Platform