Fixed timer in TAP tests

PRS_3888_3903^2
René Cannaò 4 years ago
parent 51f1456d38
commit afb079899c

@ -28,6 +28,7 @@ typedef char my_bool;
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
static ulong start_timer(void);
static void end_timer(ulong start_time,char *buff);
@ -350,13 +351,13 @@ int exit_status()
#include <time.h>
#else
#include <sys/times.h>
#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)
{

Loading…
Cancel
Save