Module: Variable::Timer
- Defined in:
- lib/variable.rb
Class Method Summary collapse
-
.elapsed ⇒ Float
Monotonic elapsed time of block execution.
Class Method Details
.elapsed ⇒ Float
Monotonic elapsed time of block execution
62 63 64 65 66 |
# File 'lib/variable.rb', line 62 def self.elapsed start = now yield now - start end |