Module: Mutant::Variable::Timer Private
- Defined in:
- lib/mutant/variable.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
-
.elapsed ⇒ Float
private
Monotonic elapsed time of block execution.
Class Method Details
.elapsed ⇒ Float
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Monotonic elapsed time of block execution
61 62 63 64 65 |
# File 'lib/mutant/variable.rb', line 61 def self.elapsed start = now yield now - start end |