Sha256: 815b7f8a864682a6d59ddb08094937bfe6fd7bd119fbd6c562245141d88baf8f

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 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

6 entries across 6 versions & 1 rubygems

Version Path
junk_drawer-0.0.7 lib/core_extensions/kernel.rb
junk_drawer-0.0.6 lib/core_extensions/kernel.rb
junk_drawer-0.0.5 lib/core_extensions/kernel.rb
junk_drawer-0.0.4 lib/core_extensions/kernel.rb
junk_drawer-0.0.3 lib/core_extensions/kernel.rb
junk_drawer-0.0.2 lib/core_extensions/kernel.rb