I have an application that sends and receives data from a given website with TIdTCPClient - looks like this :
TCPClient.Host := myHost;
TCPClient.Port := myPort;
TCPClient.Connect;
TCPClient.IOHandler.Write(clientRequest);
TCPClient.IOHandler.ReadStream(clientResponse, size, False);
where clientRequest
is created dynamically and clientResponse
is what the server (the wanted website) sends as a response.So my question is how can I calculate the average response time from the website my TCPClient has connected to ?
TIdTCPClient
and notTIdHTTP
? – Remy LebeauTIdHTTP
. – Remy Lebeau