summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-15 16:53:26 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-15 16:53:26 -0800
commite11d77f69e992a6208be491868388cb89ddf717a (patch)
tree506b409eb5385c3fdba60e5fef05f1fb9dfcbd93
parenta239d6fa04a35be84720a4516e8164dc634bb3d3 (diff)
unifdef SYSVHEADmaster
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--tests.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests.c b/tests.c
index b612a85..ff82315 100644
--- a/tests.c
+++ b/tests.c
@@ -14,12 +14,7 @@
#include <stdlib.h>
#include <math.h>
#include "xgc.h"
-#ifdef SVR4
-#define SYSV
-#endif
-#if !defined(SYSV)
#include <sys/resource.h>
-#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
}