Remove unnecessary waitForProducer function
Require the use of std::chrono::durations
Add comments