Sha256: 329b1e2f226f4871088c9ff9f1ed532d3803c068311de37fa58f7f78859c844c

Contents?: true

Size: 642 Bytes

Versions: 103

Compression:

Stored size: 642 Bytes

Contents

module Concurrent

  # @!macro monotonic_get_time
  #
  #   Returns the current time as tracked by the application monotonic clock.
  #
  #   @param [Symbol] unit the time unit to be returned, can be either
  #     :float_second, :float_millisecond, :float_microsecond, :second,
  #     :millisecond, :microsecond, or :nanosecond default to :float_second.
  #
  #   @return [Float] The current monotonic time since some unspecified
  #     starting point
  #
  #   @!macro monotonic_clock_warning
  def monotonic_time(unit = :float_second)
    Process.clock_gettime(Process::CLOCK_MONOTONIC, unit)
  end
  module_function :monotonic_time
end

Version data entries

103 entries across 103 versions & 16 rubygems

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
concurrent-ruby-1.3.4 lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.3/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.3.3/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.3/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
concurrent-ruby-1.3.3 lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
concurrent-ruby-1.3.2 lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.1/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
concurrent-ruby-1.3.1 lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
concurrent-ruby-1.3.1.pre lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
concurrent-ruby-1.2.3 lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb