Add runtime to app dump output

Change-Id: Id16e2905fedd31de37b336bf0739b9bfc62f8618
diff --git a/tools/run_on_app_dump.py b/tools/run_on_app_dump.py
index 8a7f2f1..0d48887 100755
--- a/tools/run_on_app_dump.py
+++ b/tools/run_on_app_dump.py
@@ -800,6 +800,8 @@
       print('  {}-#{}:'.format(shrinker, compilation_index))
       dex_size = result.get('dex_size')
       msg = '    dex size: {}'.format(dex_size)
+      if options.print_runtimeraw:
+        print('    run time raw: {} ms'.format(result.get('duration')))
       if dex_size != proguard_dex_size and proguard_dex_size >= 0:
         msg = '{} ({}, {})'.format(
           msg, dex_size - proguard_dex_size,
@@ -897,6 +899,11 @@
                     help='Print the sizes of individual dex segments as ' +
                          '\'<BENCHMARKNAME>-<APP>-<segment>(CodeSize): '
                          '<bytes>\'')
+  result.add_option('--print-runtimeraw',
+                    metavar='BENCHMARKNAME',
+                    help='Print the line \'<BENCHMARKNAME>(RunTimeRaw):' +
+                        ' <elapsed> ms\' at the end where <elapsed> is' +
+                        ' the elapsed time in milliseconds.')
   result.add_option('--quiet',
                     help='Disable verbose logging',
                     default=False,