diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-15 16:53:26 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-15 16:53:26 -0800 |
commit | e11d77f69e992a6208be491868388cb89ddf717a (patch) | |
tree | 506b409eb5385c3fdba60e5fef05f1fb9dfcbd93 /tests.c | |
parent | a239d6fa04a35be84720a4516e8164dc634bb3d3 (diff) |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'tests.c')
-rw-r--r-- | tests.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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 } |