hello,everyone;
I am currently usingC6748,CCS3.3.81.5,CGT6.1.21,
In order to test run time I passed EMUCNT0 and EMUCNT1 to get therun time.
The operation process is as follows:
EMUCNT0=0;
t_stat = EMUCNT0 ;
t_end = EMUCNT1;
t_offset = t_end - t_stat;
fuction();
t_stat1= EMUCNT0 ;
t_end1 = EMUCNT1;
t_Count = t_end1 - t_stat1 - t_offset;
The calculation results:
t_Count = 4000000;
I asked TI for technical support, he told me that t_Count is running a number of clock.
But I through Profile->Clock showed about 200000clock.
I am not sure what kind of access to theclock is accurate??
Who can help me to explain two ways this distinction?
If the EMUCNT0calculation error, so what can I do to get the correct value?
help me.Thanks.