demo will now also display average times
removed an unnecessary std::atomic