Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <time.h>
- #include <stdio.h>
- #include <stdlib.h>
- #define MAX_SIZE 5000000
- int main(void) {
- double start, finish;
- int i, c;
- start = clock();
- for (i=0; i <MAX_SIZE; i++) {
- c++;
- }
- finish = clock();
- printf("%lf", (start-finish));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement