Measure time in Ruby without Time.now