What is the best way to measure latency via a "telnet to port" test, preferably with built-in Linux tools? What about : time nc -zw30 <host> <port>