class Asynk::Benchmark

Public Class Methods

end(start_time) click to toggle source
# File lib/asynk/benchmark.rb, line 15
def end(start_time)
  ((Time.now.to_f - start_time)*1000).round(2)
end
measure_around(&block) click to toggle source
# File lib/asynk/benchmark.rb, line 5
def measure_around(&block)
  start_time = Time.now.to_f
  block.call
  ((Time.now.to_f - start_time)*1000).round(2)
end
start() click to toggle source
# File lib/asynk/benchmark.rb, line 11
def start
  Time.now.to_f
end