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

Version Path
picky-4.1.0 lib/picky/helpers/indexing.rb
picky-4.0.9 lib/picky/helpers/indexing.rb
picky-4.0.8 lib/picky/helpers/indexing.rb
picky-4.0.7 lib/picky/helpers/indexing.rb
picky-4.0.6 lib/picky/helpers/indexing.rb
picky-4.0.5 lib/picky/helpers/indexing.rb
picky-4.0.4 lib/picky/helpers/indexing.rb
picky-4.0.3 lib/picky/helpers/indexing.rb
picky-4.0.1 lib/picky/helpers/indexing.rb
picky-4.0.0 lib/picky/helpers/indexing.rb
picky-4.0.0pre6 lib/picky/helpers/indexing.rb
picky-4.0.0pre5 lib/picky/helpers/indexing.rb
picky-4.0.0pre3 lib/picky/helpers/indexing.rb
picky-4.0.0pre2 lib/picky/helpers/indexing.rb
picky-4.0.0pre1 lib/picky/helpers/indexing.rb