public Method

Benchmark.realtime() { || ... }

Returns the elapsed real time used to execute the given block.

Source Code

# File benchmark.rb, line 306
def realtime(&blk) # :yield:
  Benchmark::measure(&blk).real
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.