るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.020秒)
トップページ > クエリ:cstime[x] > 種類:モジュール関数[x]

別のキーワード

  1. tms cstime
  2. tms cstime=
  3. _builtin cstime
  4. benchmark cstime
  5. _builtin cstime=

ライブラリ

モジュール

キーワード

検索結果

Benchmark.#benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|rep| ...} -> [Benchmark::Tms] (7.0)

Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。

...PU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの system CPU time で置き換えられます。Benchmark::Tms#cstime
: %t
total CPU time で置き換えられます。Benchmark::Tms#total
: %r
実経過時間で置き換えられます。Benchmark::Tms#real
:...

Process.#clock_gettime(clock_id, unit=:float_second) -> Float | Integer (7.0)

POSIX の clock_gettime() 関数の時間を返します。

...s() を使います。
ユーザー時間 (tms_utime) と システム時間 (tms_stime) を足した結果を返します。
tms_cutime と tms_cstime は子プロセスの時間を含みません。
精度はクロック数 (clock tick) です。
「getconf CLK_TCK」コマンドで1秒あた...