require "logger" require "concurrent" require "net/http" require "aws-sdk" module SqsPoller module Common class Utils class << self def get_current_time_in_millis current_time = Time.now (current_time.to_f * 1000).to_i end def start_timer SqsPoller::Common::Utils::Timer.new end end class Timer def initialize start end def start_time @start_time end def stop_time @stop_time end def start @start_time = SqsPoller::Common::Utils.get_current_time_in_millis end def stop @stop_time = SqsPoller::Common::Utils.get_current_time_in_millis @stop_time - @start_time end end end end end