Sha256: ddd3a642029e92e34927807925010a374cabd1c37afca93a45cd275e6fb00073

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

require 'rake'
require 'benchmark'
require "rake/benchmark/version"

class Rake::Task
  def execute_with_benchmark(*args)
    bench = Benchmark.measure do
      execute_without_benchmark(*args)
    end
    puts "  #{name} --> #{bench}"
  end
  alias_method :execute_without_benchmark, :execute
  alias_method :execute, :execute_with_benchmark
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rake-benchmark-1.0.0 lib/rake/benchmark.rb