Sha256: fd17df75e89f1607252f9e6fa3d9b4d0bcd1111fa7a773ec22eb8be37723dca6

Contents?: true

Size: 111 Bytes

Versions: 5

Compression:

Stored size: 111 Bytes

Contents

def tm(msg="Thing")
  t = Time.now
  yield
  seconds = Time.now - t
  puts "#{msg} took #{seconds} seconds"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
GFunk911-mharris_ext-1.1.0 lib/mharris_ext/benchmark.rb
GFunk911-mharris_ext-1.2.0 lib/mharris_ext/benchmark.rb
GFunk911-mharris_ext-1.3.0 lib/mharris_ext/benchmark.rb
GFunk911-mharris_ext-1.4.0 lib/mharris_ext/benchmark.rb
GFunk911-mharris_ext-1.4.1 lib/mharris_ext/benchmark.rb