added timing function to the queue