class Bunny::Timestamp
Abstracts away the Ruby (OS) method of retriving timestamps.
@private
Public Class Methods
monotonic()
click to toggle source
# File lib/bunny/timestamp.rb, line 10 def self.monotonic Process.clock_gettime(Process::CLOCK_MONOTONIC) end
non_monotonic()
click to toggle source
# File lib/bunny/timestamp.rb, line 14 def self.non_monotonic ::Time.now end
non_monotonic_utc()
click to toggle source
# File lib/bunny/timestamp.rb, line 18 def self.non_monotonic_utc self.non_monotonic.utc end
now()
click to toggle source
# File lib/bunny/timestamp.rb, line 6 def self.now ::Time.now end