module YumRepo

Constants

VERSION

Public Class Methods

bench(msg) { || ... } click to toggle source
# File lib/yumrepo.rb, line 18
def self.bench(msg)
  if defined? $yumrepo_perf_debug
    out = Benchmark.measure do
      yield
    end
    puts msg + out.to_s
  else
    yield
  end
end