Sha256: b5b859841f211c766cdbd0fcb5bf38e0e81cbd15f9c31774f4525504b7df8387

Contents?: true

Size: 390 Bytes

Versions: 50

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

module Rdkafka
  # Namespace for some small utilities used in multiple components
  module Helpers
    # Time related methods used across Karafka
    module Time
      # @return [Float] current monotonic time in seconds with microsecond precision
      def monotonic_now
        ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
karafka-rdkafka-0.18.0 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.18.0.rc1 lib/rdkafka/helpers/time.rb
rdkafka-0.19.0 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.6 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.5 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.4 lib/rdkafka/helpers/time.rb
rdkafka-0.18.0 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.3 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.2 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.2.rc1 lib/rdkafka/helpers/time.rb
rdkafka-0.17.0 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.1 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.1.beta1 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.17.0 lib/rdkafka/helpers/time.rb
rdkafka-0.14.1 lib/rdkafka/helpers/time.rb
rdkafka-0.15.2 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.13.10 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.14.11 lib/rdkafka/helpers/time.rb
karafka-rdkafka-0.15.2 lib/rdkafka/helpers/time.rb
rdkafka-0.16.1 lib/rdkafka/helpers/time.rb