Class: Rake::Task
- Inherits:
-
Object
- Object
- Rake::Task
- Defined in:
- lib/rake/benchmark.rb
Instance Method Summary collapse
- #execute_with_benchmark(*args) ⇒ Object (also: #execute)
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 |