Class: Cyclotone::Scheduler::SystemClock
- Inherits:
-
Struct
- Object
- Struct
- Cyclotone::Scheduler::SystemClock
- Defined in:
- lib/cyclotone/scheduler.rb
Instance Attribute Summary collapse
-
#unused ⇒ Object
Returns the value of attribute unused.
Instance Method Summary collapse
Instance Attribute Details
#unused ⇒ Object
Returns the value of attribute unused
10 11 12 |
# File 'lib/cyclotone/scheduler.rb', line 10 def unused @unused end |
Instance Method Details
#monotonic_time ⇒ Object
11 12 13 |
# File 'lib/cyclotone/scheduler.rb', line 11 def monotonic_time Process.clock_gettime(Process::CLOCK_MONOTONIC) end |
#wall_time ⇒ Object
15 16 17 |
# File 'lib/cyclotone/scheduler.rb', line 15 def wall_time Time.now.to_f end |