class Cucumber::Core::Test::Timer

def duration

def duration
  Result::Duration.new(nsec)
end

def nsec

def nsec
  time_in_nanoseconds - @start_time
end

def sec

def sec
  nsec / 10 ** 9.0
end

def start

def start
  @start_time = time_in_nanoseconds
  self
end

def time_in_nanoseconds

def time_in_nanoseconds
  MonotonicTime.time_in_nanoseconds
end