module Timeable
Provides result and run time of a given block.
Public Instance Methods
timed() { || ... }
click to toggle source
# File lib/devpack/timeable.rb, line 5 def timed start = Time.now.utc result = yield [result, Time.now.utc - start] end