Sha256: 3eedf18f216507cdf8c2f43eb8888b00734588d690a28f4609e4f4e128596b52
Contents?: true
Size: 357 Bytes
Versions: 57
Compression:
Stored size: 357 Bytes
Contents
# Helper methods for measuring, benchmarking, logging. # module Helpers module Measuring # Returns a duration in seconds. # def timed *args, &block block_to_be_measured = lambda &block time_begin = Time.now.to_f block_to_be_measured.call *args Time.now.to_f - time_begin end end end
Version data entries
57 entries across 57 versions & 1 rubygems