Method: RSpec::Core::Example::ExecutionResult#ensure_timing_set

Defined in:
lib/rspec/core/example.rb

#ensure_timing_set(clock) ⇒ void

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.

Populates finished_at and run_time if it has not yet been set



610
611
612
# File 'lib/rspec/core/example.rb', line 610

def ensure_timing_set(clock)
  calculate_run_time(clock.now) unless finished_at
end