Class CSimulationTimer#

Inheritance Relationships#

Base Types#

Class Documentation#

class CSimulationTimer : public sdv::IInterfaceAccess, public sdv::IObjectDestroy, public sdv::core::ITimerSimulationStep#

Timer object managing the lifetime of the timer.

Public Functions

CSimulationTimer(CSimulationTaskTimerService &rtimersvc, uint32_t uiPeriod, sdv::core::ITaskExecute *pExecute)#

Constructor.

Parameters:
  • rtimersvc[in] Reference to the task timer service.

  • uiPeriod[in] The period of the task timer (must not be 0) in ms.

  • pExecute[in] Pointer to the interface containing the execution function.

virtual void DestroyObject() override#

Destroy the object. Overload of sdv::IObjectDestroy::DestroyObject.

virtual void SimulationStep(uint64_t uiSimulationStep) override#

Method to set the time which has past from the last simulation step.

Parameters:

uiSimulationStep[in] the time in microseconds which has past from the last simulation step.

operator bool() const#

Operator returning info about the validity of the timer.