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.

CLK_getltime() always gives 0

I wrote this code:

Void main()
{
LgUns time1;
int i,count;
LOG_printf(&trace,"hello world!");
time1=CLK_getltime();
LOG_printf(&trace,"%d",time1);
for(i=0;i<100;i++){
count++;}
time1=CLK_getltime();
LOG_printf(&trace,"%d",time1);
return;
}

And this is my output:

0    hello world!

1    0

2    0

Why CLK_getltime()  always returns 0? Where am I wrong? Can anybody please give some suggestions about this?