projects
/
kopensolaris-gnu
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* time/tzset.c (__tzname, __daylight, __timezone): Don't check
[kopensolaris-gnu/glibc.git]
/
time
/
clocktest.c
1
#include <stdio.h>
2
#include <time.h>
3
4
main ()
5
{
6
volatile int i;
7
double t1, t2, t;
8
9
t1 = (double) clock ();
10
for (i = 0; i < 100000; ++i) ;
11
t2 = (double) clock ();
12
13
t = (t2 - t1) / ((double) CLOCKS_PER_SEC);
14
printf ("%f - %f = %f\n",t2,t1,t);
15
return 0;
16
}