Hello,
I have a piece of code that I need to benchmark on a Olimex SAM9-l9260 board running a Linux version 2.6.26.3-olimex (
dimitar@lindev.vm) (gcc version 4.2.3 (Sourcery

kernel.
I tried to use time.h like this:
Code:
printf("Computation start\n");
t1 = clock();
"DO THE STUFF"
t2 = clock()-t1;
printf("Computation end\n");
printf ("%.6f\n", (double)(t2+0.0) / CLOCKS_PER_SEC);
But a get unresonable values

Anybody have a clue if and how time.h works in this scenario (I don't have to have processor time, wall-clock time is fine for me if that is the only one possible)...
Hope for luck!
Best/Carl