class Dry::Monitor::Clock
Public Instance Methods
current()
click to toggle source
# File lib/dry/monitor/notifications.rb, line 15 def current Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond) end
measure() { || ... }
click to toggle source
# File lib/dry/monitor/notifications.rb, line 9 def measure start = current result = yield [result, current - start] end