lib/rgot.rb in rgot-0.0.1 vs lib/rgot.rb in rgot-0.0.2

- old
+ new

@@ -1,15 +1,28 @@ module Rgot autoload :VERSION, 'rgot/version' autoload :Common, 'rgot/common' - autoload :T, 'rgot/t' autoload :M, 'rgot/m' + autoload :T, 'rgot/t' + autoload :B, 'rgot/b' - class InternalTestType < Struct.new(:module, :name) + class OptionError < StandardError end + class InternalTest < Struct.new(:module, :name) + end + + class InternalBenchmark < Struct.new(:module, :name) + end + class << self - def now - Process.clock_gettime(Process::CLOCK_MONOTONIC) + if "2.0.0" < RUBY_VERSION + def now + Process.clock_gettime(Process::CLOCK_MONOTONIC) + end + else + def now + Time.now + end end end end