I have a list of tasks on a queue. One or multiple threads can process tasks from this queue. Each task has a specific duration. I want to add that duration to the startTime