Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CLK_gethtime() returns the same value

$
0
0

Hi,

I am CCS v 5.3 and use eZdsp TMS320F2812. I want to use CLK_gethtime() in order to calculate the time taken to execute my calculation. However, in a simple code as shown below, I see that CLK_gethtime() always returns 350 and CLK_getltime() always returns 0. Can someone please guide me to use this correctly?

Void main()
{
unsigned int clkStartTime = CLK_gethtime();

unsigned int clkStopTime;

int i;

for(i=0; i<10000; i++)
{
// do nothing
}

clkStopTime = CLK_gethtime();

}

Thanks,

Darshana


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>