module Cutoff::Timer
Public Instance Methods
now()
click to toggle source
The current time
If it is available, this will use a monotonic clock. This is a clock that always moves forward in time. If that is not available on this system, `Time.now` will be used
@return [Float] The current time as a float
# File lib/cutoff/timer.rb, line 13 def now Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) end