def benchmark(method, *args)
      start = Time.now
      result = yield
      Dynamoid.logger.debug "(#{((Time.now - start) * 1000.0).round(2)} ms) #{method.to_s.split('_').collect(&:upcase).join(' ')}#{" - #{args.inspect}" unless args.nil? || args.empty?}"
      result
    end
def benchmark(method, *args)
      start = Time.now
      result = yield
      Dynamoid.logger.debug "(#{((Time.now - start) * 1000.0).round(2)} ms) #{method.to_s.split('_').collect(&:upcase).join(' ')}#{" - #{args.inspect}" unless args.nil? || args.empty?}"
      result
    end
Shows how long it takes a method to run on the adapter. Useful for generating logged output.

 @param [Symbol] method the name of the method to appear in the log
 @param [Array] args the arguments to the method to appear in the log
 @yield the actual code to benchmark

 @return the result of the yield

 @since 0.2.0