Module: Pod::Flash::TimingMixin
- Includes:
- PatchingMixin
- Included in:
- Installer, Installer::PodSourceInstaller
- Defined in:
- lib/cocoapods-flash/core/timing.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from PatchingMixin
Class Method Details
.included(base) ⇒ Object
19 20 21 |
# File 'lib/cocoapods-flash/core/timing.rb', line 19 def self.included(base) base.extend(self) end |
Instance Method Details
#timing(name, options = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/cocoapods-flash/core/timing.rb', line 10 def timing(name, = {}) patch_method(name) do duration = Flash::Stopwatch.measure("#{self.class}.#{name}", ) do method("flash_#{name}").call end yield self, duration if block_given? end end |