Part Number: AM5718
Tool/software: Linux
Dear All,
We are using the latest sdk for AM5718 soc. we used for loop in our Application code as per our analysis by below code it will took more time for execution.
Here is the code for 13M time for loop is executing and it will took 116 ms.
#include <stdio.h>
#include <sys/time.h>
float timedifference_msec(struct timeval t0, struct timeval t1)
{
return (t1.tv_sec - t0.tv_sec) * 1000.0f + (t1.tv_usec - t0.tv_usec) / 1000.0f;
}
int main()
{
struct timeval t0;
struct timeval t1;
float elapsed;
int i=0;
gettimeofday(&t0, 0);
for(i=0;i<13*1024*1024;i++);
gettimeofday(&t1, 0);
elapsed = timedifference_msec(t0, t1);
printf("bayer_to_rgb in %f milliseconds.\n", elapsed);
}
do anyone help us for how to making it fast means same for loop will took less time?
Thanks & Best Regards,
Nikunj Patel