IPC@CHIP® RTOS-LNX – API Documentation
RTX task information report. More...
This data structure is used by the RTX_Task_Info() API to report detailed information concerning a specific task.
The tiDutyTime and tiElapsedTime member values are valid only if the RTX_MON_READY bit is set in tiTaskMonStatus. These values are up to date if both RTX_MON_READY and RTX_MON_RUNNING flags are set. (At the first invocation of RTX_Task_Info() only the RTX_MON_RUNNING will be set.)
The reported tiElapsedTime is the amount of time since a previous call to RTX_Task_Info() was made for the respective task. And tiDutyTime is the amount of CPU time this task has used since that previous call. In this way the period over which a task's duty cycle is measured can be controlled by the time between calls to RTX_Task_Info().
Note: Task overall duty cycle loading can be calculated as:
tiRunTime / tiExistTime