Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <time.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #define MAX_SIZE 5000000
  5.  
  6.  
  7. int main(void) {
  8.  
  9. double start, finish;
  10. int i, c;
  11.  
  12. start = clock();
  13. for (i=0; i <MAX_SIZE; i++) {
  14. c++;
  15. }
  16. finish = clock();
  17.  
  18. printf("%lf", (start-finish));
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement