diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-08-08 12:21:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-08-08 12:21:10 -0700 |
commit | 567fdcaf038346d30a49246b16f8ca1540af6542 (patch) | |
tree | 06563cddbee2083746c66e8a25c3b54e3fe9e5f9 | |
parent | 99f5400e0038e8e841149dd59f147928af5124a0 (diff) | |
download | ohai-more_debug_time.tar.gz |
Use Benchmark.realtime for the main application time as wellmore_debug_time
We probably want this in both locations
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/application.rb b/lib/ohai/application.rb index a469fc56..cdbac369 100644 --- a/lib/ohai/application.rb +++ b/lib/ohai/application.rb @@ -77,11 +77,11 @@ class Ohai::Application # # @return void def run - elapsed = Benchmark.measure do + elapsed = Benchmark.realtime do configure_ohai run_application end - Ohai::Log.debug("Ohai took #{elapsed.total} total seconds to run.") + Ohai::Log.debug("Ohai took #{elapsed} total seconds to run.") end # parses the CLI options, loads the config file if present, and initializes logging |