Revive app_tminterval for Netware.
authorAndy Polyakov <appro@openssl.org>
Sun, 6 Nov 2005 17:11:04 +0000 (17:11 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 6 Nov 2005 17:11:04 +0000 (17:11 +0000)
apps/apps.c

index 4468e50494749f94cca37754923df40408cb627f..5a05604579832bcf8a3126e80cd1f7a44f70a31f 100644 (file)
@@ -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>