leonardo leottau

time.h    clock()

Discussion created by leonardo leottau on Apr 12, 2010
Latest reply on Apr 15, 2010 by Tom Thompson

Hi.

 

Is  possible to use the function clock() of time.h library on the simulator of DSC 5600E?

 

Currently, I am treating to use it, but errors as shown belown apear.

 

undefined identifier clok_t

function Fclock has no prototype

 

It is realy urgent.

 

Many thanks.

 

 

 

#include <time.h>
#include <stdio.h>

clock_t clock(void);

int main()
{
   clock_t start, end;

 

start = clock();

//,,,,my code //

end = clock( );


elapsed = end - start;
printf("Elapsed time: %Lu \n", elapsed);

 

 }   

Outcomes