Jump to content
KBazX

TSslHttpRest - How can I get web server response time?

Recommended Posts

I'm sorry, I phrased the question incorrectly.

I meant the duration of the request execution by the server.
 

Share this post


Link to post
1 hour ago, KBazX said:

I'm sorry, I phrased the question incorrectly.

I meant the duration of the request execution by the server.
 

You have to see that at server side. Anything you measure at client side will include transport time and some processing by the receiver.

I the server can't tell you the execution time, you can get an approximation by using a network sniffer such as Wireshark. Using this tool you can get the timestamp of the request and the timestamp of the response. The difference gives you the execution by the server.

Share this post


Link to post
On 11/25/2024 at 4:47 PM, FPiette said:

You have to see that at server side. Anything you measure at client side will include transport time and some processing by the receiver.

I the server can't tell you the execution time, you can get an approximation by using a network sniffer such as Wireshark. Using this tool you can get the timestamp of the request and the timestamp of the response. The difference gives you the execution by the server.

I just need the total time it takes to get a response from the web service.
That is, taking into account network delays, web server delays, etc.
 

Share this post


Link to post

Just keep the time or tick count before you make the request, and again afterwards.  The component can do this internally for sessions, bur not single requests. 

 

Angus

 

Share this post


Link to post
24 minutes ago, Angus Robertson said:

Just keep the time or tick count before you make the request, and again afterwards.  The component can do this internally for sessions, bur not single requests. 

I'm doing this in the OnStateChange-event for now. I'm tracking states httpDnsLookupDone and httpBodyReceived.

Share this post


Link to post
6 hours ago, KBazX said:

I just need the total time it takes to get a response from the web service.
That is, taking into account network delays, web server delays, etc.

Always ask the good question so that we don't waste our time answering something unwanted. See Angus answer.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×