Class: Rake::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/benchmark.rb

Instance Method Summary collapse

Instance Method Details

#execute_with_benchmark(*args) ⇒ Object Also known as: execute



6
7
8
9
10
11
# File 'lib/rake/benchmark.rb', line 6

def execute_with_benchmark(*args)
  bench = Benchmark.measure do
    execute_without_benchmark(*args)
  end
  puts "  #{name} --> #{bench}"
end