class ActiveSupport::Testing::Performance::Profiler

def time_with_block

def time_with_block
  before = Time.now
  yield
  Time.now - before
end