]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/cpu-timer.cc
release: 1.1.29
[lilypond.git] / flower / cpu-timer.cc
index c838fe5cc9116b9c83b10bb536442511faaa9300..6a0a4236bf2772b36ee6f27978207b13003d0ad6 100644 (file)
@@ -3,14 +3,20 @@
 
   source file of the Flower Library
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "cpu-timer.hh"
-
+#include <unistd.h>
 // nextstep
 #ifndef CLOCKS_PER_SEC
+#ifdef CLK_TCK
 #define CLOCKS_PER_SEC  CLK_TCK
+#elif defined _SC_CLK_TCK
+#define CLOCKS_PER_SEC  sysconf(_SC_CLK_TCK)
+#else
+#error cannot determine CLOCKS_PER_SEC
+#endif
 #endif