Page 1 of 1

Read the task\'s time

Posted: Mon Oct 12, 2009 8:57 am
by Luigi_84
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.

Re:Read the task\'s time

Posted: Mon Oct 12, 2009 1:34 pm
by paolo.gai
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