Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STDOUT.sync = true
- module TimedRequire
- def require(*args)
- time = Time.now
- super
- print "require '#{args.join(",")}': %.08f %s\n" % [(Time.now - time), ("* slowdown" if (Time.now - time) >= 0.01)]
- end
- end
- include TimedRequire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement