Sha256: 78332f79d1d98d7ccd950be4c7dae09f4683c13844f93f088bb0eb1619424804

Contents?: true

Size: 230 Bytes

Versions: 2

Compression:

Stored size: 230 Bytes

Contents

# frozen_string_literal: true

class Circuitbox
  module TimeHelper
    module Monotonic
      module_function

      def current_second
        Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
circuitbox-2.0.0 lib/circuitbox/time_helper/monotonic.rb
circuitbox-2.0.0.pre5 lib/circuitbox/time_helper/monotonic.rb