#include <stdio.h>
#include <time.h>
int main()
{
clock_t start_t = clock();
for (int i = 0; i < 30000000; i++) {}
clock_t end_t = clock();
double total_t = (double)(end_t - start_t) / CLOCKS_PER_SEC;
printf("Total CPU time = %f seconds", total_t);
return 0;
}
/*
run:
Total CPU time = 0.039000 seconds
*/