Top Level Namespace

Defined Under Namespace

Classes: BetterUUID

Constant Summary collapse

NUM_OPS =
1_000_000
FOO =
'foo'

Instance Method Summary collapse

Instance Method Details

#time(&block) ⇒ Object



11
12
13
# File 'lib/benchmark.rb', line 11

def time(&block)
  (defined?(AbsoluteTime) ? AbsoluteTime : Benchmark).realtime(&block)
end