Module: Cucumber::Formatter::Duration
Instance Method Summary collapse
Instance Method Details
#format_duration(seconds) ⇒ Object
4 5 6 7 |
# File 'lib/cucumber/formatter/duration.rb', line 4 def format_duration(seconds) m, s = seconds.divmod(60) "#{m}m#{'%.3f' % s}s" end |