Latency: Definition, measurement and testing