logging time spent in queue