From afb079899cb98da482ab507ccf24fa2cda63ba60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sun, 19 Jun 2022 20:21:10 +0000 Subject: [PATCH] Fixed timer in TAP tests --- test/tap/tap/tap.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/tap/tap/tap.cpp b/test/tap/tap/tap.cpp index df457ae89..263805998 100644 --- a/test/tap/tap/tap.cpp +++ b/test/tap/tap/tap.cpp @@ -28,6 +28,7 @@ typedef char my_bool; #include #include #include +#include static ulong start_timer(void); static void end_timer(ulong start_time,char *buff); @@ -350,13 +351,13 @@ int exit_status() #include #else #include -#ifdef _SC_CLK_TCK // For mit-pthreads -#undef CLOCKS_PER_SEC +//#ifdef _SC_CLK_TCK // For mit-pthreads +//#undef CLOCKS_PER_SEC #define CLOCKS_PER_SEC (sysconf(_SC_CLK_TCK)) -#endif +//#endif #endif -#define CLOCKS_PER_SEC 1000000 +//#define CLOCKS_PER_SEC 1000000 static ulong start_timer(void) {