# frozen_string_literal: true
module Cucumber
module Formatter
module Duration
# Helper method for formatters that need to
# format a duration in seconds to the UNIX
# time format.
def format_duration(seconds)
m, s = seconds.divmod(60)
"#{m}m#{format('%.3f', seconds: s)}s"
end
end
end
end