Extract duration calculation method
Add legacy queue wait metric