How to calculate the time a request remains in the queue

I need to find some way to calculate how long a request remains in the queue.

Welcome to our community! :smiley:

Which queue are you referring to here?

Hi, I mean Thread pool queues