Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (17 sloc) 356 Bytes
#include <stdio.h>
#include <time.h>
void main()
{
clock_t start, end;
double t;
#ifdef USE_VOLATILE
volatile int i;
#else
int i;
#endif
start = clock();
for (i = 0; i < 0x3FFFFFFF; i++);
end = clock();
t = ((double) (end - start)) / CLOCKS_PER_SEC;
printf("time used %f\n",t);
}
You can’t perform that action at this time.