lib/rbbt/util/misc/development.rb in rbbt-util-5.42.0 vs lib/rbbt/util/misc/development.rb in rbbt-util-5.43.0
- old
+ new
@@ -37,16 +37,16 @@
repeats.times do
res = yield
end
end
if message
- puts "#{message }: #{ repeats } repeats"
+ STDERR.pust "#{message }: #{ repeats } repeats"
else
- puts "Benchmark for #{ repeats } repeats"
+ STDERR.puts "Benchmark for #{ repeats } repeats"
end
- puts measure
+ STDERR.puts measure
rescue Exception
- puts "Benchmark aborted"
+ STDERR.puts "Benchmark aborted"
raise $!
end
res
end