Class: Cucumber::Core::Test::Timer
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::Timer
- Defined in:
- lib/cucumber/core/test/timer.rb
Instance Method Summary collapse
Instance Method Details
#duration ⇒ Object
10 11 12 |
# File 'lib/cucumber/core/test/timer.rb', line 10 def duration nsec end |
#nsec ⇒ Object
14 15 16 |
# File 'lib/cucumber/core/test/timer.rb', line 14 def nsec time_in_nanoseconds - @start_time end |
#sec ⇒ Object
18 19 20 |
# File 'lib/cucumber/core/test/timer.rb', line 18 def sec nsec / 10 ** 9.0 end |
#start ⇒ Object
5 6 7 8 |
# File 'lib/cucumber/core/test/timer.rb', line 5 def start @start_time = time_in_nanoseconds self end |