PC_ElapsedInit () is invoked to compute the overhead associated with the PC_ElapsedStart () and PC_ElapsedStop () calls. This allows PC_ElapsedStop () to return return the execution time (in microseconds) of the code you are trying to measure.
You must call this function prior to calling either PC_ElapsedStart () and PC_ElapsedStop ().
Example void main (void)
/* Initialize uC/OS-II
/* Compute overhead of elapse meas. */
/* Start multitasking
Was this article helpful?