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?