module Kernel # An easy way to log and keep an eye on initialization routines, rake tasks, etc... def time(message, &block) start_time = Time.now yield puts "#{message}: #{"%0.3f" % (Time.now - start_time)} seconds" end end