Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

program execution time calculate in c

#include <time.h>
     
     clock_t start, end;
     double cpu_time_used;
     
     start = clock();
     ... /* Do the work. */
     end = clock();
     cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
 
PREVIOUS NEXT
Tagged: #program #execution #time #calculate
ADD COMMENT
Topic
Name
8+1 =