请问TMS320C6455有寄存器可以直接获取程序运行时间吗?或者有可调用的函数用吗?
谢谢
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.
利用tscl寄存器可以获取。
#include "c6x.h"
... int start, stop;
TSCL = 0; // need to write to it to start counting
start = TSCL;
///... critical code
stop = TSCL;
stop -= start; // stop will have the total number of CPU cycles