AnsweredAssumed Answered

How to measure a C functions execution time in ARM DS-5 under Timesys Linux?

Question asked by Dragan Kujovic on Oct 12, 2014
Latest reply on Oct 17, 2014 by alejandrolozano

Respected Colleagues,

 

can somebody share a sample how to measure execution time inside the ARM DS-5 GCC application for Vybrid VF61 A5 core, because generic way (shown bellow) doesn't work. Variable clock_t can not be linked to a code no matter that the time.h is included. Result is always zero.

 

#include <time.h>

clock_t start, end;
double cpu_time_used;

start
= clock();
... /* Do the work. */
end
= clock();
cpu_time_used
= ((double) (end - start)) / CLOCKS_PER_SEC;


Thanks in advance.


With best regards,

Dragan Kujovic

Outcomes