Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

get time to complete code c

clock_t begin = clock();

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

clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #complete #code
ADD COMMENT
Topic
Name
9+8 =