On Sun, 2016-01-17 at 13:32 -0800, Gary Gregory wrote: > I'll let Oleg opine on the right way... > > Gary > On Jan 17, 2016 1:28 PM, "Philippe Mouawad" <philippe.moua...@gmail.com> > wrote: > > > Hi Gary, > > First I just wanted some confirmation that it's the right way. > > Then I will see if I can provide a patch. > > > > Regards > > > > On Sunday, January 17, 2016, Gary Gregory <garydgreg...@gmail.com> wrote: > > > > > Hi Philippe, > > > > > > If you want to speed up the process, I'd recommend you provide a patch on > > > top of trunk. > > > > > > 2c, > > > Gary > > > > > > On Sun, Jan 17, 2016 at 5:33 AM, Philippe Mouawad <pmoua...@apache.org > > > <javascript:;>> > > > wrote: > > > > > > > Hi, > > > > Any feedback on this question ? > > > > Thanks > > > > > > > > On Wed, Jan 13, 2016 at 10:48 PM, Philippe Mouawad < > > pmoua...@apache.org > > > <javascript:;>> > > > > wrote: > > > > > > > > > Hello, > > > > > > > > > > We have a requirement in JMeter to compute latency in the most > > accurate > > > > > way: > > > > > > > > > > - latency being the time between the start of the request send > > and > > > > > the first byte receival. > > > > > > > > > > Currently it appears there is an interface called: > > > > > > > > > > - org.apache.http.HttpConnectionMetrics > > > > > > > > > > implemented by : > > > > > > > > > > - org.apache.http.impl.HttpConnectionMetricsImpl > > > > > > > > > > It would be nice to enhance to compute this latency within > > > > > HTTPCore/HTTPClient. > > > > > > > > > > Or maybe this already exists. > > > > >
What you probably want is to capture the time spent in HttpRequestExecutor#execute. http://hc.apache.org/httpcomponents-core-4.4.x/httpcore/xref/org/apache/http/protocol/HttpRequestExecutor.html#114 You can do so by extending the class and decorating the #execute method. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org