This page is available in: en

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	Address of packet for returning task statistics


BOOL	clr	Task statistics clear flag

[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. When clr = TRUE (= 0), accumulated information is reset (cleared to 0) after getting the statistics.

Comments

Click here to Post a Comment