summaryrefslogtreecommitdiff
path: root/graphics/Mesa3/files/patch-aa
blob: 5815a70715b789b3f6fb3205f89859c3f27435c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
*** samples/speed.c.0	Fri Mar  3 16:38:42 1995
--- samples/speed.c	Sun Mar  5 18:59:23 1995
***************
*** 35,40 ****
--- 35,44 ----
  #include <sys/param.h>
  #endif
  
+ #ifdef __STDC__
+ #include <time.h>
+ #endif
+ 
  
  #define GAP 10
  #define ROWS 1
***************
*** 122,128 ****
--- 126,136 ----
      clock_t clk;
  
      clk = times(&tm);
+ #ifdef __STDC__
+     return (double)clk / (double)CLOCKS_PER_SEC;
+ #else
      return (double)clk / (double)HZ;
+ #endif
  #else
      return 0;
  #endif