1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdlib.h> #include <stdio.h> #include <time.h> int main(int argc, char * argv[]) { int i; clock_t e; clock_t s = clock(); for(i = 0; i < 100000000; i++); e = clock(); printf("We started at %d and ended at %d.", s, e); return 0; }
1
We started at 0 and ended at 0.