Skip to content

Instantly share code, notes, and snippets.

@r7kamura
Created September 6, 2020 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r7kamura/a9b70b4ef44492e88619660e18ee28e3 to your computer and use it in GitHub Desktop.
Save r7kamura/a9b70b4ef44492e88619660e18ee28e3 to your computer and use it in GitHub Desktop.
module Kernel
alias_method :original_require, :require
def require(path)
time = ::Time.now
original_require(path).tap do
puts "%3.6f\t#{path}" % (Time.now - time)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment