#elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
# define TIMES
#endif
+#if !defined(_UNICOS)
+# define TIMEB
+#endif
#ifndef _IRIX
# include <time.h>
#undef TIMES
#endif
+#ifdef TIMEB
#include <sys/timeb.h>
+#endif
+
+#if !defined(TIMES) && !defined(TIMEB)
+#error "It seems neither struct tms nor struct timeb is supported in this platform!"
+#endif
#if defined(sun) || defined(__ultrix)
#define _POSIX_SOURCE
return((ret < 1e-3)?1e-3:ret);
}
}
- else
# endif /* times() */
+# if defined(TIMES) && defined(TIMEB)
+ else
+# endif
+# ifdef TIMEB
{
static struct timeb tstart,tend;
long i;
return((ret < 0.001)?0.001:ret);
}
}
+# endif
#endif
}
#endif
BIO_printf(bio_err,"idea rc2 des rsa blowfish\n");
BIO_printf(bio_err,"\n");
+#ifdef TIMES
BIO_printf(bio_err,"Available options:\n");
BIO_printf(bio_err,"\n");
BIO_printf(bio_err,"-elapsed measure time in real time instead of CPU user time.\n");
+#endif
goto end;
}
argc--;