From c287b866c81ae21b23daf8fa84f33401ce9b29fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inge=20J=C3=B8rgensen?= Date: Fri, 8 Nov 2024 14:48:06 +0100 Subject: [PATCH] Fix deprecated Benchmark.ms call --- lib/dis/logging.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dis/logging.rb b/lib/dis/logging.rb index 5dc3b17..01fa1b5 100644 --- a/lib/dis/logging.rb +++ b/lib/dis/logging.rb @@ -4,7 +4,7 @@ module Dis module Logging def debug_log(message, &block) result = nil - duration = Benchmark.ms { result = block.call } + duration = Benchmark.realtime { result = block.call } * 1000 logger.debug(format("[Dis] %s (%.1fms)", message:, duration:))