Oh, why not:
int i;
clock_t ticks;
ticks = clock();
for(i = 0; i < 100000000; i++);
ticks = clock() - ticks;
printf("Number of ticks: %ld\n", ticks);
printf("Clocks per second: %ld\n", CLOCKS_PER_SEC);
printf("Time ellapsed: %ld ms\n", ticks * 1000 / CLOCKS_PER_SEC));
getchar();
Note, I did this with a C++ compiler, but it should work with a C compiler (don't have a C compiler to test it with). Also note that the order of operations in the last printf statement are very important. Reversing the 1000 and CLOCKS_PER_SEC would give me a result of 0ms instead of 235ms (in my case, where there were ticks=235 and CLOCK_PER_SEC=1000), since this is integer arithmetic.