Sha256: b87dbc66f3e148c9bae31968f7352064032a36cb8a76a1df381f7af91e4f8b8d

Contents?: true

Size: 311 Bytes

Versions: 51

Compression:

Stored size: 311 Bytes

Contents

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#{'%.3f' % s}s"
      end
    end
  end
end

Version data entries

51 entries across 49 versions & 3 rubygems

Version Path
cucumber-2.99.0 lib/cucumber/formatter/duration.rb
mobiusloop-0.1.5 lib/cucumber/formatter/duration.rb
cucumber-2.4.0 lib/cucumber/formatter/duration.rb
mobiusloop-0.1.3 lib/cucumber/formatter/duration.rb
mobiusloop-0.1.2 lib/cucumber/formatter/duration.rb
cucumber-2.3.3 lib/cucumber/formatter/duration.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/lib/cucumber/formatter/duration.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/lib/cucumber/formatter/duration.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/lib/cucumber/formatter/duration.rb
cucumber-2.3.2 lib/cucumber/formatter/duration.rb
cucumber-2.3.1 lib/cucumber/formatter/duration.rb
cucumber-2.3.0 lib/cucumber/formatter/duration.rb
cucumber-2.2.0 lib/cucumber/formatter/duration.rb
cucumber-2.1.0 lib/cucumber/formatter/duration.rb
cucumber-2.0.2 lib/cucumber/formatter/duration.rb
cucumber-2.0.1 lib/cucumber/formatter/duration.rb
cucumber-1.3.20 lib/cucumber/formatter/duration.rb
cucumber-2.0.0 lib/cucumber/formatter/duration.rb
cucumber-2.0.0.rc.5 lib/cucumber/formatter/duration.rb
cucumber-1.3.19 lib/cucumber/formatter/duration.rb