class Bunny::Timestamp
Abstracts away the Ruby (OS) method of retriving timestamps.
@private
Public Class Methods
Source
# File lib/bunny/timestamp.rb, line 12 def self.monotonic Process.clock_gettime(Process::CLOCK_MONOTONIC) end
Source
# File lib/bunny/timestamp.rb, line 16 def self.non_monotonic ::Time.now end
Source
# File lib/bunny/timestamp.rb, line 20 def self.non_monotonic_utc self.non_monotonic.utc end