24件ヒット
[1-24件を表示]
(0.014秒)
別のキーワード
検索結果
先頭2件
-
REXML
:: Formatters :: Pretty # width=(w) (21100.0) -
出力のページ幅を設定します。
...出力のページ幅を設定します。
@param w ページ幅の設定値
@see REXML::Formatters::Pretty#width... -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (13.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
...定します。
@param fmtstr フォーマット文字列を指定します。
この引数を省略すると Benchmark::FORMAT が使用されます。
@param labels ブロックが Benchmark::Tms オブジェクトの配列を返す場合に指定します。
=== フォ......total:", ">avg:") do |x| ... end
# と同じ
Benchmark.benchmark(" "*7 + Benchmark::CAPTION,
7,
Benchmark::FORMAT,
">total:",
">avg:") do |x|
tf = x.report("for:") { for i in 1..n; a = "1"; end }
tt = x.report("ti...