Sha256: 4c0504576464d54732a3c025cd6c41e35870c11c65d8750c45093e0e1e2fb1be
Contents?: true
Size: 243 Bytes
Versions: 1
Compression:
Stored size: 243 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
junk_drawer-0.0.1 | lib/core_extensions/kernel.rb |