added latency measurements to parse script