Class: SqsPoller::Common::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/sqspoller/common/utils.rb

Defined Under Namespace

Classes: Timer

Class Method Summary collapse

Class Method Details

.get_current_time_in_millisObject



11
12
13
14
# File 'lib/sqspoller/common/utils.rb', line 11

def get_current_time_in_millis
  current_time = Time.now
  (current_time.to_f * 1000).to_i
end

.start_timerObject



16
17
18
# File 'lib/sqspoller/common/utils.rb', line 16

def start_timer
  SqsPoller::Common::Utils::Timer.new
end