summaryrefslogtreecommitdiffstats
path: root/apps/lib
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-05-22 10:14:04 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-05-25 12:01:37 +0200
commit8069bf585453c96d1d14c1c0f53f3592bf057453 (patch)
treed3eac6bb068cfea9111a7b3c2f964e437768648a /apps/lib
parent2bd928a1bff7e39070992df1876b8d9ea9634301 (diff)
Drop special case of time interval calculation for VMS
The existing special case code is broken and it is not needed anymore as times() and _SC_CLK_TCK should be supported on the supported VMS versions. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/11905)
Diffstat (limited to 'apps/lib')
-rw-r--r--apps/lib/apps.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c
index 497081c153..dbc9be344d 100644
--- a/apps/lib/apps.c
+++ b/apps/lib/apps.c
@@ -2230,40 +2230,6 @@ double app_tminterval(int stop, int usertime)
return ret;
}
-#elif defined(OPENSSL_SYSTEM_VMS)
-# include <time.h>
-# include <times.h>
-
-double app_tminterval(int stop, int usertime)
-{
- static clock_t tmstart;
- double ret = 0;
- clock_t now;
-# ifdef __TMS
- struct tms rus;
-
- now = times(&rus);
- if (usertime)
- now = rus.tms_utime;
-# else
- if (usertime)
- now = clock(); /* sum of user and kernel times */
- else {
- struct timeval tv;
- gettimeofday(&tv, NULL);
- now = (clock_t)((unsigned long long)tv.tv_sec * CLK_TCK +
- (unsigned long long)tv.tv_usec * (1000000 / CLK_TCK)
- );
- }
-# endif
- if (stop == TM_START)
- tmstart = now;
- else
- ret = (now - tmstart) / (double)(CLK_TCK);
-
- return ret;
-}
-
#elif defined(_SC_CLK_TCK) /* by means of unistd.h */
# include <sys/times.h>