H
Huibuh
I want to check the runtime of a part of my program. I chose
#include <time.h>
int runtime
time_t start, end;
start=time(NULL);
end=time(NULL);
runtime=difftime (end, start);
The result was zero, so obviously it is not exact enough. I found the
function CLOCK icw CLOCKS_PER_SEC but I have no idea how to use.
Any idea?
Thanks in advance Dieter
#include <time.h>
int runtime
time_t start, end;
start=time(NULL);
end=time(NULL);
runtime=difftime (end, start);
The result was zero, so obviously it is not exact enough. I found the
function CLOCK icw CLOCKS_PER_SEC but I have no idea how to use.
Any idea?
Thanks in advance Dieter