added latency api