Module: Rgot
- Defined in:
- lib/rgot.rb,
lib/rgot/b.rb,
lib/rgot/f.rb,
lib/rgot/m.rb,
lib/rgot/t.rb,
lib/rgot/pb.rb,
lib/rgot/cli.rb,
lib/rgot/common.rb,
lib/rgot/version.rb,
lib/rgot/example_parser.rb,
lib/rgot/benchmark_result.rb
Defined Under Namespace
Classes: B, BenchmarkResult, Cli, Common, ExampleOutput, ExampleParser, F, InternalBenchmark, InternalExample, InternalFuzzTarget, InternalTest, M, PB, T
Constant Summary
collapse
- OptionError =
Class.new(StandardError)
- VERSION =
"1.4.0"
Class Method Summary
collapse
Class Method Details
.benchmark(opts_hash = {}, &block) ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/rgot.rb', line 26
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
|
.now ⇒ Object
22
23
24
|
# File 'lib/rgot.rb', line 22
def now
Process.clock_gettime(Process::CLOCK_MONOTONIC)
end
|
.verbose? ⇒ Boolean
34
35
36
|
# File 'lib/rgot.rb', line 34
def verbose?
@chatty
end
|