Created
February 9, 2010 19:15
-
-
Save jhsu/299552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
class Rake::Task | |
def execute_with_benchmark(*args) | |
bench = Benchmark.measure do | |
execute_without_benchmark(*args) | |
end | |
puts "\n #{name} --> #{bench}" | |
end | |
alias_method_chain :execute, :benchmark | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment