blob: ddbb01a2598639b16be10f2751f35f6a6923f6cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# patch to fix missing CLK_TCK in glibc 2.4
--- a/src/main.c
+++ b/src/main.c
@@ -439,7 +439,7 @@
gettimer(TIMEOFDAY,&t);
return (t.tv_sec+t.tv_nsec/1000000000.0);
#else
- return ((double)(times(NULL)))/CLK_TCK;
+ return ((double)(times(NULL)))/CLOCKS_PER_SEC;
#endif
}
|