class Cucumber::Core::Test::Result::UnknownDuration

def nanoseconds

def nanoseconds
  raise "#nanoseconds only allowed to be used in #tap block"
end

def tap(&block)

def tap(&block)
  self
end

def to_message_duration

def to_message_duration
  Cucumber::Messages::Duration.new(seconds: 0, nanos: 0)
end