Hi everybody i need to read the starting and the ending time of a task. How can i do? Is there any possible primitives?
Thank you.
Read the task\'s time
Moderator: paolo.gai
Re:Read the task\'s time
Hi,
You should just program a timer, and then read the timer at each pretaskhook and posttaskhook.
This should give you an idea of how long the program lasted, including all the preemption points.
Please note that PreTaskHook and PostTaskHook are only available in the OSEK conformance classes (BCC1, BCC2, ECC1, ECC2).
Ciao,
PJ
You should just program a timer, and then read the timer at each pretaskhook and posttaskhook.
This should give you an idea of how long the program lasted, including all the preemption points.
Please note that PreTaskHook and PostTaskHook are only available in the OSEK conformance classes (BCC1, BCC2, ECC1, ECC2).
Ciao,
PJ