Sha256: 0f91ade923c06ba16e2d291bba6cf25053c5a384d07326c8c6a963e94d142a7c
Contents?: true
Size: 433 Bytes
Versions: 15
Compression:
Stored size: 433 Bytes
Contents
module Picky # Helper methods for measuring, benchmarking, logging. # module Helpers module Indexing include Measuring # Returns a duration in seconds. # def timed_indexing scheduler, &block timed_exclaim "Indexing using #{scheduler.fork? ? 'multiple processes' : 'a single process'}." timed_exclaim "Indexing finished after #{timed(&block).round}s." end end end end
Version data entries
15 entries across 15 versions & 1 rubygems