7 #include "imstkModule.h" 8 #include "imstkLogger.h" 15 Module::setSleepDelay(
const double ms)
24 if (m_init && !m_paused)
26 if (m_sleepDelay != 0.0)
28 std::this_thread::sleep_for(std::chrono::duration<double, std::milli>(m_sleepDelay));
31 if (m_muteUpdateEvents)
37 this->
postEvent(Event(Module::preUpdate()));
39 this->
postEvent(Event(Module::postUpdate()));
void postEvent(const T &e)
Emits the event Direct observers will be immediately called, in sync Queued observers will receive th...