Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

run time in c

#include <time.h>
clock_t begin = clock();

/* here, do your time-consuming job */

clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
printf("%f
", time_spent);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #time
ADD COMMENT
Topic
Name
8+1 =