Thanks for your answer.
I think that something is wrong with project and compiling from ARM DS-5, because the variable clock_t is red underscored, but compiling pass without errors and warnings. time.h is included.
When I try from Linux shell "time sleep 2" it returns correct answer, but when I try it from application with reading
start = clock();
sleep(2); // 2 seconds
end = clock();
both start and end are populated with the same value, and because of that the result is allways zero.
I will try to further investigate this.
With best regards,
Dragan Kujovic