Add measure_latency.cpp