R
Robbo
Hi,
I need to measure the time a function spends in "user space" on Win32.
I thought to use clock() function:
clock_t start_clock=clock();
funzione();
clock_t end_clock=clock();
double time = (double)(end_clock-start_clock) / CLOCKS_PER_SEC;
printf("%f\n",time);
In your opinion, is it correct?
What other methods do you suggest me?
Thank you.
I need to measure the time a function spends in "user space" on Win32.
I thought to use clock() function:
clock_t start_clock=clock();
funzione();
clock_t end_clock=clock();
double time = (double)(end_clock-start_clock) / CLOCKS_PER_SEC;
printf("%f\n",time);
In your opinion, is it correct?
What other methods do you suggest me?
Thank you.