PCElapsed Ini t

void PC_ElapsedInit(void);

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.

Arguments

None

Return Value

None

Notes/Warnings

You must call this function prior to calling either PC_ElapsedStart () and PC_ElapsedStop ().

Example void main (void)

OSInitO ;

/* Initialize uC/OS-II

PC_ElapsedInit();

/* Compute overhead of elapse meas. */

OSStart();

/* Start multitasking

Was this article helpful?

0 0

Post a comment