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,时间问题



下面是我的代码,timer为默认64位,内部时钟1GHz。

TSCL=0;

CSL_tmrGetTimLoCount(hTmr,&time3);
tscl3=TSCL;
for (i=0;i<1000;i++);
tscl4=TSCL;
CSL_tmrGetTimLoCount(hTmr,&time4);
time2=(time4)-(time3);
tscl2=tscl4-tscl3;
可是最后得出的结果是

time2=1500;

tscl2=9500;两者相差太大,请问下这是什么原因??