Class: Lhm::Throttler::LegacyTime
- 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
Instance Method Summary collapse
-
#initialize(timeout, stride) ⇒ LegacyTime
constructor
A new instance of LegacyTime.
Methods inherited from Time
Methods included from Command
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 |