TMU0 | Counter value |
main() { Uint32 count1, count2, count, micro; count1 = syTmrGetCount(); /* Start measurement */ TestFunc(); /* Execute function that is the target */ count2 = syTmrGetCount(); /* End measurement */ count = syTmrDiffCount(count1, count2); /* Get difference in counter values */ micro = syTmrCountToMicro(count); /* Convert counter value to microseconds */ while (1); }