Part Number:TMS320C6455
请问TMS320C6455有寄存器可以直接获取程序运行时间吗?或者有可调用的函数用吗?
谢谢
Nancy Wang:
利用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