Method: NewRelic::Agent::WorkerLoop#schedule_next_invocation

Defined in:
lib/new_relic/agent/worker_loop.rb

#schedule_next_invocationObject

[View source]

53
54
55
56
57
58
59
# File 'lib/new_relic/agent/worker_loop.rb', line 53

def schedule_next_invocation
  now = Process.clock_gettime(Process::CLOCK_REALTIME)
  while @next_invocation_time <= now && @period > 0
    @next_invocation_time += @period
  end
  @next_invocation_time - Process.clock_gettime(Process::CLOCK_REALTIME)
end