td_inf_tsk

Reference Task Statistics

[C Language Interface]

ER ercd = td_inf_tsk ( ID tskid, TD_ITSK *pk_itsk, BOOL clr );

[Parameters]

ID tskid Task ID (TSK_SELF can be designated)

TD_ITSK* pk itsk Packet address for returning task statistics

BOOL clr Task statistics clear .ag

[Return Parameters]

ER ercd Error code

pk itsk detail:

RELTIM stime Cumulative system-level run time (ms)

RELTIM utime Cumulative user-level run time (ms)

[Error Codes]

E_OK Normal completion

E_ID ID number is invalid

E_NOEXS Object does not exist

[Description]

Gets task statistics. This is similar to tk_inf_tsk. When clr = TRUE (= 0), accumulated information

is reset (cleared to 0) after getting the statistics.

Comments