TcpClient client = newTcpClient(); start = DateTime.Now.Ticks; client.Connect(ip, port); finish = DateTime.Now.Ticks; double miliSecond = (finish - start) / 10000;