Hi all, I was wondering on how to measure the time it takes to run a code from code composer on a dsk6713 board as I would like to test ifferent codes runtime. (The time used by the processor to run the code). Thank you
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all, I was wondering on how to measure the time it takes to run a code from code composer on a dsk6713 board as I would like to test ifferent codes runtime. (The time used by the processor to run the code). Thank you
In my opinion, the most accurate way would be to use one of the General Purpose 32-bit timers to count cycles. Be sure to account for the divider ratio for the timer's clock vs. the CPU clock.
You can initialize one of the timers and either let it free-run after that or stop-clear-start-run-stop, whichever way fits your needs the best.
The profiler might work for you, but I tend to use the timer for a direct measurement.
In addition to Randy's suggestion please see this same suggestion I made in a different thread: http://e2e.ti.com/forums/p/6581/25384.aspx#25384
I don't have the code handy but the pseudo-code is listed there.