0
How to show the actual CPU clock taken to run the algorithm. Write a complete/non program.
It is preferrable if it is done with trials, means, the program shows the running time of the trials by one time.
1 Respuesta
+ 1
clock_t
CLOCKS_PER_SEC
clock();
#include <time.h>
Use brain and Google :3
clock_t TimeOne, TimeTwo;
TimeOne = clock();
Some Code The Much Meow !
TimeTwo = clock();
clock_t Time = ( TimeTwo - TimeOne ) / CLOCKS_PER_SEC
show(Time);
The Much Wow !...
Meow :3... hyhy xD
I'm Tobi ! xD
sry 4 my Gr8 Eng. :3 !