Execution_time vs elapsed_time in metrics of result object

Hi Team,

I wanted to understand the difference between the execution_time and elapsed_time present in the metrics dict of couchbase result object.
Basically I want to know how much time my query took to run on couchbase server.
Can I please get some clarity on this or point me to documentation please.

Thanks,
Devansh

@dev-agr When the request arrives at the server, it is placed into a queue until a worker thread picks it up. Elapsed time includes time spent in the queue, whereas execution time does not. They are both wall clock times, not CPU times

@raju Thanks! Would elapsed time also include the execution time?
Like is elapsed time=time spent in queue+execution time?

@dev-agr That is correct. Elapsed time = Time spent in queue + execution time.

@raju Perfect, thank you!