restore usage of -elapsed that was disabled in the ifdef reorg
authorTim Hudson <tjh@openssl.org>
Mon, 17 Aug 2015 12:16:39 +0000 (22:16 +1000)
committerTim Hudson <tjh@openssl.org>
Mon, 17 Aug 2015 12:16:39 +0000 (22:16 +1000)
Reviewed-by: Ben Laurie <ben@openssl.org>
apps/speed.c

index ca93d2c0707a627987b9d8e0dc84dfc8aad17964..49efa7b4c9dbcc374b33dff91de1dafa6cfb056f 100644 (file)
@@ -364,10 +364,8 @@ OPTIONS speed_options[] = {
     {"mr", OPT_MR, '-', "Produce machine readable output"},
     {"mb", OPT_MB, '-'},
     {"misalign", OPT_MISALIGN, 'n', "Amount to mis-align buffers"},
-#if defined(TIMES) || defined(USE_TOD)
     {"elapsed", OPT_ELAPSED, '-',
      "Measure time in real time instead of CPU user time"},
-#endif
 #ifndef NO_FORK
     {"multi", OPT_MULTI, 'p', "Run benchmarks in parallel"},
 #endif
@@ -755,9 +753,6 @@ int speed_main(int argc, char **argv)
     long ecdh_c[EC_NUM][2];
     int ecdh_doit[EC_NUM];
 #endif
-#ifndef TIMES
-    usertime = -1;
-#endif
 
     memset(results, 0, sizeof(results));
 #ifndef OPENSSL_NO_DSA