Sha256: 2f39990f90504428eb22d0e32d5285ee647da6d0838e3194ee824ae2fd9868a7

Contents?: true

Size: 501 Bytes

Versions: 42

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

module Karafka
  # Time trackers module.
  #
  # Time trackers are used to track time in context of having a time poll (amount of time
  # available for processing) or a pausing engine (pause for a time period).
  module TimeTrackers
    # Base class for all the time-trackers.
    class Base
      private

      # @return [Float] current time in milliseconds
      def now
        ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) * 1000
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
karafka-2.0.24 lib/karafka/time_trackers/base.rb
karafka-2.0.23 lib/karafka/time_trackers/base.rb
karafka-2.0.22 lib/karafka/time_trackers/base.rb
karafka-2.0.21 lib/karafka/time_trackers/base.rb
karafka-2.0.20 lib/karafka/time_trackers/base.rb
karafka-2.0.19 lib/karafka/time_trackers/base.rb
karafka-2.0.18 lib/karafka/time_trackers/base.rb
karafka-2.0.17 lib/karafka/time_trackers/base.rb
karafka-2.0.16 lib/karafka/time_trackers/base.rb
karafka-2.0.15 lib/karafka/time_trackers/base.rb
karafka-2.0.14 lib/karafka/time_trackers/base.rb
karafka-2.0.13 lib/karafka/time_trackers/base.rb
karafka-2.0.12 lib/karafka/time_trackers/base.rb
karafka-2.0.11 lib/karafka/time_trackers/base.rb
karafka-2.0.10 lib/karafka/time_trackers/base.rb
karafka-2.0.9 lib/karafka/time_trackers/base.rb
karafka-2.0.8 lib/karafka/time_trackers/base.rb
karafka-2.0.7 lib/karafka/time_trackers/base.rb
karafka-2.0.6 lib/karafka/time_trackers/base.rb
karafka-2.0.5 lib/karafka/time_trackers/base.rb