# File lib/facet/time/elapse.rb, line 12 def self.elapse raise "Need block" unless block_given? t0 = Time.now.to_f yield Time.now.to_f - t0 end