# File lib/gherkin/formatter/json_formatter.rb, line 65 def append_duration(timestamp) #check to make sure result exists (scenario outlines do not have results yet) if !@current_step_or_hook['result'].nil? #convert to nanoseconds timestamp = timestamp * 1000000000 rshash = @current_step_or_hook['result'].to_hash rshash['duration'] = timestamp.to_i @current_step_or_hook['result'] = rshash end end