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