added latency measurement application