Class: Cyclotone::Scheduler::SystemClock

Inherits:
Struct
  • Object
show all
Defined in:
lib/cyclotone/scheduler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#unusedObject

Returns the value of attribute unused

Returns:

  • (Object)

    the current value of unused



10
11
12
# File 'lib/cyclotone/scheduler.rb', line 10

def unused
  @unused
end

Instance Method Details

#monotonic_timeObject



11
12
13
# File 'lib/cyclotone/scheduler.rb', line 11

def monotonic_time
  Process.clock_gettime(Process::CLOCK_MONOTONIC)
end

#wall_timeObject



15
16
17
# File 'lib/cyclotone/scheduler.rb', line 15

def wall_time
  Time.now.to_f
end