Class: Lhm::Throttler::LegacyTime

Inherits:
Time
  • Object
show all
Defined in:
lib/lhm/throttler/time.rb

Constant Summary

Constants inherited from Time

Time::DEFAULT_STRIDE, Time::DEFAULT_TIMEOUT

Instance Attribute Summary

Attributes inherited from Time

#stride, #timeout_seconds

Instance Method Summary collapse

Methods inherited from Time

#execute

Methods included from Command

#run

Constructor Details

#initialize(timeout, stride) ⇒ LegacyTime

Returns a new instance of LegacyTime.



23
24
25
26
# File 'lib/lhm/throttler/time.rb', line 23

def initialize(timeout, stride)
  @timeout_seconds = timeout / 1000.0
  @stride = stride
end