Sha256: a3507d60dbd465c107e030edc32017892d5ffae0b2b1f0935780908663801ed5

Contents?: true

Size: 763 Bytes

Versions: 1

Compression:

Stored size: 763 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={}, &block)
      B.new(nil, nil, opts).run(&block)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rgot-0.0.5 lib/rgot.rb