@Override
        public ManagedHttpClientConnection createConnection(Socket socket) throws IOException {
            long startT = System.currentTimeMillis();
            try {
                return super.createConnection(socket);
            } finally {
                long endT = System.currentTimeMillis();
                times.add(endT - startT);
            }
        }
This factory is used only when no ssl connections are required (no https endpoints).
Internally http client would create factory and spend time if no supplied.
client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java