Sha256: 81aacdf32916a9656eb06e581a5ede6c46eced97fb45811a88d9da1eb036dc97
Contents?: true
Size: 897 Bytes
Versions: 6
Compression:
Stored size: 897 Bytes
Contents
module Rgot require 'rgot/version' require 'rgot/common' require 'rgot/m' require 'rgot/t' require 'rgot/b' require 'rgot/pb' require 'rgot/benchmark_result' require 'rgot/example_parser' class OptionError < StandardError end class InternalTest < Struct.new(:module, :name) end class InternalBenchmark < Struct.new(:module, :name) end class InternalExample < Struct.new(:module, :name) end class ExampleOutput < Struct.new(:name, :output) end class << self if "2.0.0" < RUBY_VERSION def now Process.clock_gettime(Process::CLOCK_MONOTONIC) end else def now Time.now end end def benchmark(opts_hash={}, &block) opts = B::Options.new opts_hash.each do |k, v| opts[k] = v end B.new(nil, nil, opts).run(&block) end def verbose? @chatty end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rgot-0.1.5 | lib/rgot.rb |
rgot-0.1.4 | lib/rgot.rb |
rgot-0.1.3 | lib/rgot.rb |
rgot-0.1.2 | lib/rgot.rb |
rgot-0.1.1 | lib/rgot.rb |
rgot-0.1.0 | lib/rgot.rb |