Uint64_t a;
Uint32 b;
a= clock_cycles();
b= uint32((a*1000000)/(SYSPAGE_ENTRY(qtime)->cycles_per_sec));
printf("RECEIVE from Time in microseconds: %ld\n", b);
I created the variable and taking the timestamp and converting that into uint32 as shown in the above code.
If I print the b value then I am getting negative value!! What's wrong in doing like above ??