Module: Cucumber::Formatter::Duration

Included in:
Console, Html
Defined in:
lib/cucumber/formatter/duration.rb

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