lib/rgot.rb in rgot-0.0.4 vs lib/rgot.rb in rgot-0.0.5
- old
+ new
@@ -2,10 +2,12 @@
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
@@ -28,8 +30,12 @@
end
else
def now
Time.now
end
+ end
+
+ def benchmark(opts={}, &block)
+ B.new(nil, nil, opts).run(&block)
end
end
end