Merge pull request #55 from mbj/use-benchmark

Change Mutant::Killer#run_with_benchmark to use Benchmark.measure
This commit is contained in:
Markus Schirp 2013-06-24 02:01:21 -07:00
commit f3a2e42f70
3 changed files with 6 additions and 5 deletions

View file

@ -1,3 +1,3 @@
---
threshold: 16
total_score: 607
total_score: 604

View file

@ -1,3 +1,4 @@
require 'benchmark'
require 'set'
require 'adamantium'
require 'ice_nine'

View file

@ -89,10 +89,10 @@ module Mutant
# @api private
#
def run_with_benchmark
start_time = Time.now
@killed = run
end_time = Time.now
@runtime = end_time - start_time
times = Benchmark.measure do
@killed = run
end
@runtime = times.real
end
# Run killer