logic: Fixed TaskDecoratorDelay slowing down Task processing

This commit is contained in:
Eberhard Graether
2018-10-28 17:11:24 +01:00
parent e2dd26ee5a
commit 0663286a90
@@ -21,8 +21,7 @@ Task::TaskState TaskDecoratorDelay::doUpdate(std::shared_ptr<Blackboard> blackbo
return m_taskRunner->update(blackboard);
}
const int SLEEP_TIME_MS = (m_delayMS / 3) + 1;
std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_TIME_MS));
std::this_thread::sleep_for(std::chrono::milliseconds(1));
m_delayComplete = (TimeStamp::now().deltaMS(m_start) >= m_delayMS);