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