From e11d77f69e992a6208be491868388cb89ddf717a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 15 Feb 2024 16:53:26 -0800 Subject: unifdef SYSV Signed-off-by: Alan Coopersmith --- tests.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'tests.c') diff --git a/tests.c b/tests.c index b612a85..ff82315 100644 --- a/tests.c +++ b/tests.c @@ -14,12 +14,7 @@ #include #include #include "xgc.h" -#ifdef SVR4 -#define SYSV -#endif -#if !defined(SYSV) #include -#endif #ifndef PI #define PI 3.14159265 @@ -43,7 +38,6 @@ static long timer(int flag) { -#if !defined(SYSV) static struct timeval starttime; /* starting time for gettimeofday() */ struct timeval endtime; /* ending time for gettimeofday() */ static struct rusage startusage; /* starting time for getrusage() */ @@ -79,20 +73,6 @@ timer(int flag) fprintf(stderr,"Invalid flag in timer()\n"); return((long) NULL); } -#else - static time_t starttime; - - switch (flag) { - case StartTimer: - time(&starttime); - return((long) NULL); - case EndTimer: - return( (time(NULL) - starttime) * 1000000); - default: - fprintf(stderr,"Invalid flag in timer()\n"); - return((long) NULL); - } -#endif } -- cgit v1.2.3