Method: Atatus::Transaction#stop
- Defined in:
- lib/atatus/transaction.rb
#stop(clock_end = Util.monotonic_micros) ⇒ Object
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.
127 128 129 130 131 132 133 |
# File 'lib/atatus/transaction.rb', line 127 def stop(clock_end = Util.monotonic_micros) raise 'Transaction not yet start' unless @duration = clock_end - @clock_start @self_time = @duration - child_durations.duration self end |