timemeasurment
-
Hi
i try to measure the time in my Programm.
However this does not work:#include <time.h>
clock_t start;
clock_t end;start = clock(); <---- here the programm terminates
//do a function
end = clock();
printf("Time: %f.10f", double(end-start)/(double)CLOCKS_PER_SEC);
Any of you guys can help me??
best regards, XuS
-
Korrekt ist timemeasurement und nicht timemeasurment.
Deine Zeilen lassen keinen Schluss auf einen Fehler zu, außerdem gibt es codetags, ist das Englisch genug?
-
Der ist sicher nur ein Troll der int main(){} weggelassen hat.
#include <time.h> #include <stdio.h> int main() { clock_t start; clock_t end; start = clock(); //do a function end = clock(); printf("Time: %.10f", (double)end-start/(double)CLOCKS_PER_SEC); }