diff options
author | Andy Polyakov <appro@openssl.org> | 2005-11-06 17:11:04 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-11-06 17:11:04 +0000 |
commit | 9135fddb0e7b66c4b1a2b82065f1ee4088840f4c (patch) | |
tree | bb048f6ce5df6801f7914b2740e701c39cf791f0 /apps/apps.c | |
parent | d88fcf73f19fc63095929eaa531cbd4680c3f75c (diff) |
Revive app_tminterval for Netware.
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c index 4468e50494..5a05604579 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2424,6 +2424,28 @@ double app_tminterval(int stop,int usertime) return (ret); } +#elif defined(OPENSSL_SYSTEM_NETWARE) +#include <time.h> + +double app_tminterval(int stop,int usertime) + { + double ret=0; + static clock_t tmstart; + static int warning=1; + + if (usertime && warning) + { + BIO_printf(bio_err,"To get meaningful results, run " + "this program on idle system.\n"); + warning=0; + } + + if (stop==TM_START) tmstart = clock(); + else ret = (clock()-tmstart)/(double)CLOCKS_PER_SEC; + + return (ret); + } + #elif defined(OPENSSL_SYSTEM_VXWORKS) #include <time.h> |