How to find the average query response time

Hi,

I want to find out the average query response time. Say I ran a thousand queries, does ES provide any stats API to find the average response time of all the queries.

Using

_node/stats API, I see I can get stats like below, but is that average response time if I do a calculation of query_time_in_millis/query_total? Can you please explain what's the difference between query and fetch stats that we get for search stats(as shown below)

search: {
open_contexts: 0,
query_total: 128150,
query_time_in_millis: 19653,
query_current: 0,
fetch_total: 127903,
fetch_time_in_millis: 8173,
fetch_current: 0
}