blob: 0031fc209622d523f557d51893290a06ef6ef50d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <stdio.h>
#include <time.h>
extern long f(void);
int main()
{
clock_t t0;
long l;
t0 = clock();
l = f();
t0 = clock() - t0;
printf("f() = %ld\n", l);
printf(" %.4f secs\n", (double)t0/CLOCKS_PER_SEC);
return 0;
}
|