diff options
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 } |