Class: Rake::Task

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

Instance Method Summary collapse

Instance Method Details

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



32
33
34
35
# File 'lib/rake-extensions.rb', line 32

def execute_with_benchmark(*args)
  bm = Benchmark.realtime { execute_without_benchmark(*args) }
  $task_benchmarks << [name, bm]
end