#include <stdio.h>
#include <time.h>
void f() {
int i = 0;
while(i < 100000) {
i++;
}
}
int main()
{
clock_t ct = clock();
f();
ct = clock() - ct;
double total_time = ((double)ct) / CLOCKS_PER_SEC;
printf("%f seconds", total_time);
return 0;
}
/*
run:
0.000258 seconds
*/