Added measure_latency code to docu_3.tex