Sha256: 4f64ff4f9a7d3e15719f1f9e0e5873e924dc833a7f56aa5f26e34529ffbf820b

Contents?: true

Size: 183 Bytes

Versions: 54

Compression:

Stored size: 183 Bytes

Contents

module Cucumber
  module Formatter
    module Duration
      def format_duration(seconds)
        m, s = seconds.divmod(60)
        "#{m}m#{'%.3f' % s}s" 
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 7 rubygems

Version Path
aslakhellesoy-cucumber-0.3.93.1 lib/cucumber/formatter/duration.rb
aslakhellesoy-cucumber-0.3.93 lib/cucumber/formatter/duration.rb
aslakhellesoy-cucumber-0.3.94.1 lib/cucumber/formatter/duration.rb
aslakhellesoy-cucumber-0.3.94 lib/cucumber/formatter/duration.rb
aslakhellesoy-cucumber-0.3.95 lib/cucumber/formatter/duration.rb
aslakhellesoy-cucumber-0.3.96 lib/cucumber/formatter/duration.rb
jwilger-cucumber-0.3.11.200906161550 lib/cucumber/formatter/duration.rb
jwilger-cucumber-0.3.11.200907091518 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.11.3 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.11.6 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.9.4 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.90 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.92 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.93.1 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.94 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.95 lib/cucumber/formatter/duration.rb
kosmas58-cucumber-0.3.96 lib/cucumber/formatter/duration.rb
pezra-cucumber-0.3.94.1 lib/cucumber/formatter/duration.rb
square-cucumber-0.3.12.2 lib/cucumber/formatter/duration.rb
square-cucumber-0.3.93.1.1 lib/cucumber/formatter/duration.rb