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.

C6678代码执行时间测定

运行平台:C6678评估板

连接仿真器下载程序运行

测试代码:

unsigned long long stime,etime,rtime;

TSCH=0;

TSCL=0;

设置断点1

stime = _itoll(TSCH,TSCL);

被测代码段

etime = _itoll(TSCH,TSCL);

rtime = (etime - stime)/10^9;

设置断点2

测试出代码执行时间rtime=101秒,但两个断点之间的运行时间却远不止101秒,通过查看windows时间,两个断点间运行了大概17分钟,想弄清楚为什么rtime得出的值和两个断点间运行的windows时间不一致呢?

  • 请Andy帮忙分析解答,谢谢!

    为什么采用TSCH和TSCL测出的时间和断点之间实际经过的时间不一致呢?

    难道评估板的DSP内核主频不是1G,那有没有什么办法能确认DSP内核的主频是否是1G呢?