7 #include "imstkTaskNode.h" 8 #include "imstkTimer.h" 12 std::atomic<size_t> TaskNode::s_numGlobalIds = { 0 };
17 if (m_enabled &&
m_func !=
nullptr)
virtual void start()
Start the appropriate timer.
std::function< void()> m_func
Don't allow user to call directly (must use execute)
virtual void stop()
Start the appropriate timer.
Stop Watch utility class.
virtual double getTimeElapsed(const TimeUnitType unitType=TimeUnitType::milliSeconds)
Returns the time elapsed since calling start.
virtual void execute()
Calls the function pointer provided if node enabled.