class DeepTest::Distributed::ThroughputStatistics

Attributes

end_time[R]
start_time[R]
test_count[R]

Public Class Methods

new(test_count, start_time, end_time) click to toggle source
# File lib/deep_test/distributed/throughput_statistics.rb, line 6
def initialize(test_count, start_time, end_time)
  @test_count, @start_time, @end_time = test_count, start_time, end_time
end

Public Instance Methods

summary() click to toggle source
# File lib/deep_test/distributed/throughput_statistics.rb, line 18
      def summary
        <<-end_summary
#{test_count} tests run in #{timespan_in_seconds} seconds
(#{tests_per_second} tests / second)
        end_summary
      end
tests_per_second() click to toggle source
# File lib/deep_test/distributed/throughput_statistics.rb, line 14
def tests_per_second
  @test_count / timespan_in_seconds
end
timespan_in_seconds() click to toggle source
# File lib/deep_test/distributed/throughput_statistics.rb, line 10
def timespan_in_seconds
  @end_time.to_f - @start_time.to_f
end