Created
November 28, 2013 01:26
-
-
Save wesvetter/7685923 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
module Rake | |
class Task | |
def execute_with_timestamps(*args) | |
start = Time.now | |
execute_without_timestamps(*args) | |
execution_time_in_seconds = Time.now - start | |
printf("** %s took %.1f seconds\n", name, execution_time_in_seconds) | |
end | |
alias :execute_without_timestamps :execute | |
alias :execute :execute_with_timestamps | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment