Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

execution time of c program

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: #execution #time #program
ADD COMMENT
Topic
Name
6+2 =