Sha256: eb98e82833cc3dc35dd4754735945460e0aabbeef90f093a63db27d21c05c9ee

Contents?: true

Size: 187 Bytes

Versions: 5

Compression:

Stored size: 187 Bytes

Contents

module Massive
  module TimingSupport
    def elapsed_time
      start  = started_at || 0
      finish = finished_at || Time.now

      started_at? ? finish - start : 0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
massive-0.4.0 lib/massive/timing_support.rb
massive-0.3.0 lib/massive/timing_support.rb
massive-0.2.0 lib/massive/timing_support.rb
massive-0.1.1 lib/massive/timing_support.rb
massive-0.1.0 lib/massive/timing_support.rb