Skip to content

Instantly share code, notes, and snippets.

@wesvetter
Created November 28, 2013 01:26
Show Gist options
  • Save wesvetter/7685923 to your computer and use it in GitHub Desktop.
Save wesvetter/7685923 to your computer and use it in GitHub Desktop.
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