]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/cpu-timer.cc
release: 0.1.45
[lilypond.git] / flower / cpu-timer.cc
index c838fe5cc9116b9c83b10bb536442511faaa9300..b288735c1d32058574a9c705bc484c6634a8f9ca 100644 (file)
 
 // 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