We are trying to implement Q-Routing algorithm in Gem5. For the algorithm we need the amount of time spent by packet in a particular router\'s queue (qx).