cfec1a
diff -up openssl-1.0.2e/apps/speed.c.speed-doc openssl-1.0.2e/apps/speed.c
cfec1a
--- openssl-1.0.2e/apps/speed.c.speed-doc	2015-12-04 14:00:58.000000000 +0100
cfec1a
+++ openssl-1.0.2e/apps/speed.c	2016-01-15 14:15:56.482343557 +0100
cfec1a
@@ -648,10 +648,6 @@ int MAIN(int argc, char **argv)
cfec1a
 # endif
cfec1a
     int multiblock = 0;
1c5d99
 
cfec1a
-# ifndef TIMES
cfec1a
-    usertime = -1;
cfec1a
-# endif
1c5d99
-
cfec1a
     apps_startup();
cfec1a
     memset(results, 0, sizeof(results));
cfec1a
 # ifndef OPENSSL_NO_DSA
cfec1a
@@ -1145,10 +1141,8 @@ int MAIN(int argc, char **argv)
1c5d99
 
cfec1a
             BIO_printf(bio_err, "\n");
cfec1a
             BIO_printf(bio_err, "Available options:\n");
cfec1a
-# if defined(TIMES) || defined(USE_TOD)
cfec1a
             BIO_printf(bio_err, "-elapsed        "
cfec1a
                        "measure time in real time instead of CPU user time.\n");
cfec1a
-# endif
cfec1a
 # ifndef OPENSSL_NO_ENGINE
cfec1a
             BIO_printf(bio_err,
cfec1a
                        "-engine e       "
cfec1a
diff -up openssl-1.0.2e/doc/apps/speed.pod.speed-doc openssl-1.0.2e/doc/apps/speed.pod
cfec1a
--- openssl-1.0.2e/doc/apps/speed.pod.speed-doc	2015-12-03 14:42:07.000000000 +0100
cfec1a
+++ openssl-1.0.2e/doc/apps/speed.pod	2016-01-15 14:05:23.044222376 +0100
1c5d99
@@ -8,6 +8,9 @@ speed - test library performance
1c5d99
 
1c5d99
 B<openssl speed>
1c5d99
 [B<-engine id>]
1c5d99
+[B<-elapsed>]
1c5d99
+[B<-evp algo>]
1c5d99
+[B<-decrypt>]
1c5d99
 [B<md2>]
1c5d99
 [B<mdc2>]
1c5d99
 [B<md5>]
1c5d99
@@ -49,6 +52,19 @@ to attempt to obtain a functional refere
1c5d99
 thus initialising it if needed. The engine will then be set as the default
1c5d99
 for all available algorithms.
1c5d99
 
1c5d99
+=item B<-elapsed>
1c5d99
+
1c5d99
+Measure time in real time instead of CPU time. It can be useful when testing
1c5d99
+speed of hardware engines.
1c5d99
+
1c5d99
+=item B<-evp algo>
1c5d99
+
1c5d99
+Use the specified cipher or message digest algorithm via the EVP interface.
1c5d99
+
1c5d99
+=item B<-decrypt>
1c5d99
+
1c5d99
+Time the decryption instead of encryption. Affects only the EVP testing.
1c5d99
+
1c5d99
 =item B<[zero or more test algorithms]>
1c5d99
 
1c5d99
 If any options are given, B<speed> tests those algorithms, otherwise all of