Sha256: a4ba0cf1cd3d15bb5d41612f253ea677a74c5cf77bdf2129196ac1d1bf86246d
Contents?: true
Size: 348 Bytes
Versions: 5
Compression:
Stored size: 348 Bytes
Contents
# 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 # <tt>time</tt> format. def format_duration(seconds) m, s = seconds.divmod(60) "#{m}m#{format('%.3f', s)}s" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems